When the Health Bar is attached to the 'Camera' instead of the player, the player's health is not deducted when standing on the Spike. However, the health deduction works correctly when the Health Bar is attached directly to the player entity.
❌ Actual Result
Player's health is not deducted when standing on the Spike with the Health Bar attached to the Camera.
Player's health should be deducted when standing on the Spike, irrespective of whether the Health Bar is attached to the Camera or directly to the player entity.
Severity:
SEV-3 | Stability or minor user impact
Description:
When the Health Bar is attached to the 'Camera' instead of the player, the player's health is not deducted when standing on the Spike. However, the health deduction works correctly when the Health Bar is attached directly to the player entity.
❌ Actual Result
Player's health is not deducted when standing on the Spike with the Health Bar attached to the Camera.
https://github.com/decentraland/sdk/assets/146741383/882a7bce-75bc-4960-99ca-a4cfacd186a9
✅ Expected Result
Player's health should be deducted when standing on the Spike, irrespective of whether the Health Bar is attached to the Camera or directly to the player entity.
https://github.com/decentraland/sdk/assets/146741383/f924a102-b1fd-4f93-94e3-207d85a028e4
Operating system:
Sonoma 14.2.1
if SDK, CLI Version:
Prod
If SDK, Node version:
-
Local or deployed:
Both
Code snippet:
-
Steps to reproduce:
Ticket number: