@modoki/engine / index / getWorldTransform3D
Function: getWorldTransform3D()
getWorldTransform3D(
entityId,world?):WorldTransform3D
Compute an entity's WORLD 3D transform ON DEMAND by walking parentId → root and composing (world = M_root · … · M_leaf; euler XYZ, matching transformPropagationSystem). Correct whenever it's called — a game system at bootstrap can read the world pose of a marker parented under a moved group before the render-path cache exists. Query-based (headless-safe). Depth-capped (64) against parentId cycles. Returns a SHARED singleton: read/destructure its fields IMMEDIATELY, don't retain (two live results alias). Root entities equal the local Transform.
Parameters
entityId
number
world?
World = ...