API reference

getAbsoluteScaledTransform Function

Modifiers: final
Overload of getAbsoluteScaledTransform that takes the already-resolved scale-hierarchy mode. Use this from hot loops together with isScaleHierarchyApplied to avoid re-resolving the SystemManager/TickTransformSystem per entity.

Signature

fun getAbsoluteScaledTransform(entity: Entity, applyScale: Boolean): Pair<Pose, Vector3>

Parameters

entity: Entity The target entity.
applyScale: Boolean The active scale-hierarchy mode (see isScaleHierarchyApplied).

Returns

Pair<Pose, Vector3> A pair of the world-space Pose and the entity's rendered scale Vector3.