Entity.GetGlobalTransform() returns incorrect values for child entities if there are 2+ parent entities

Summary

When an entity is attached to a parent entity, calling GetGlobalTransform() on the child entity fails to return the correct world-space transform (0,0,0). Might be returning LocalTransform instead of global transform. It works fine on immediate children but once you go 3 levels deep it breaks.

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Stability

Steps to Reproduce

  1. Create parent entity
  2. Create child entity
  3. Create child child entity
  4. Try to get the GlobalTransform from the child child entity in a component under the child child entity
  5. See the 0,0,0 result

Expected Result

The expected result is getting the correct globaltransform

Observed Result

0,0,0 transform it is possible that GetGlobalTransform() is returning the localtransform instead of the GlobalTransform

Platform(s)

all

Upload an image

The status of FORT-1026495 changed to ‘Needs Triage’. We’ve confirmed the issue and it’s waiting to be assigned to someone to fix it.