API reference

getRelativePose Function

Computes the pose child (a world-space pose) has when expressed as the local Transform of a direct child of parent, in the active scale mode.
With TickTransformSystem.applyScale on, a child's local position is multiplied by the parent's rendered scale before it is placed, so this divides that scale back out. With it off this is getAbsoluteTransform(parent).inverse() * child.

Signature

fun getRelativePose(parent: Entity, child: Pose): Pose

Parameters

parent: Entity Parent entity in the scene hierarchy.
child: Pose World-space pose.

Returns