API reference

getLocalPoseForAbsoluteTransform Function

Computes the local Transform pose that makes entity render at absolutePose under its current TransformParent, in the active scale mode, without writing it. setAbsoluteTransform writes it.
Use this when the local value is needed before it is written: to smooth toward a world-space target in local space, or to build a Transform that changes in other ways too. With TickTransformSystem.applyScale on, the scale the ancestors contribute is divided out of the position. A TransformParent that names a mesh node is honored.

Signature

fun getLocalPoseForAbsoluteTransform(entity: Entity, absolutePose: Pose): Pose

Parameters

entity: Entity The entity to place.
absolutePose: Pose Where it should render, in world space.

Returns