Creates a new GlobalRetargetReverse instance.
The source entity from which animation data will be retargeted
Gets the parent global rest quaternion for the destination entity. This method traverses up the hierarchy to find the parent's rest rotation for entities that have VRM components.
The destination entity to get parent global rest quaternion for
The parent global rest quaternion, or identity quaternion if no parent exists
Gets the source entity used for retargeting.
The source scene graph entity
Gets the parent global rest quaternion for the source entity. This method traverses up the hierarchy to find the parent's rest rotation for entities that have VRM components.
The source entity to get parent global rest quaternion for
The parent global rest quaternion, or identity quaternion if no parent exists
Retargets the quaternion rotation from source entity to destination entity. This method extracts the global animation quaternion from the source entity, then applies it to the destination entity's local coordinate system with a 180-degree Y-axis rotation reversal.
The destination entity to apply the retargeted rotation to
The retargeted quaternion with reverse rotation applied
Retargets the scale from source entity to destination entity. Currently, this method simply returns the source entity's local scale without any modifications or transformations.
The destination entity (currently unused)
The source entity's local scale vector
Retargets the translation from source entity to destination entity. This method extracts the global animation translation from the source entity, scales it according to the destination entity's proportions, then applies a 180-degree Y-axis rotation reversal.
The destination entity to apply the retargeted translation to
The retargeted translation vector with reverse rotation applied
Global retarget reverse implementation for animation retargeting. This class handles the reverse retargeting of animations from source to destination entities with global coordinate system considerations and 180-degree rotation reversal.