getWorldTransform

fun TransformManager.getWorldTransform(transformInstance: Int): Mat4

Returns the world transform of a transform component.

Return

The world transform of the component (i.e. relative to the root). This is the composition of this component's local transform with its parent's world transform.

Parameters

transformInstance

the EntityInstance of the transform component to query the world transform from.

See also

TransformManager.setTransform