decentraland / sdk

PM repository for SDK
Apache License 2.0
4 stars 4 forks source link

[Bug][Health Bar] Health deduction issue when attached to Camera #1095

Closed decentraland-bot closed 5 months ago

decentraland-bot commented 6 months ago

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:

  1. Attach the Health Bar to the Camera.
  2. Stand on the Spike in the game.
  3. Observe the player's health.

    Ticket number: