Creates a new GlobalRetarget instance.
The source entity to retarget animations from
Gets the parent's global rest quaternion for the destination entity. This is used to transform from global space to local space for the destination.
The destination entity to get parent global rest quaternion for
The parent's global rest quaternion, or identity if no parent exists
Gets the source entity for retargeting.
The source scene graph entity
Gets the parent's global rest quaternion for the source entity. This is used to transform from local space to global space for the source.
The source entity to get parent global rest quaternion for
The parent's global rest quaternion, or identity if no parent exists
Retargets rotation from the source entity to the destination entity. The method extracts the global animation quaternion from the source and applies it to the destination.
The destination entity to apply the retargeted rotation to
The retargeted local rotation quaternion for the destination entity
Retargets scale from the source entity to the destination entity. Currently returns the source entity's local scale directly without modification.
The destination entity (not used in current implementation)
The source entity's local scale vector
Retargets translation from the source entity to the destination entity. The method extracts the global animation translation from the source, scales it appropriately, and applies it to the destination entity.
The destination entity to apply the retargeted translation to
The retargeted local position vector for the destination entity
Global retargeting implementation for animation retargeting. This class handles retargeting of animations from one entity to another using global space transformations.