TransformExt.ApplyAlignment Method

Overload List

NameDescription
Public methodStatic memberApplyAlignment(Transform, Quaternion, Quaternion, Single) Applies the transformation to make a rotation defined by sourceRotation rotate towards targetRotation.
Public methodStatic memberApplyAlignment(Transform, Transform, Transform, Boolean, Boolean, Single) Applies the transformation required to make sourceAlign align with targetAlign.
Public methodStatic memberApplyAlignment(Transform, Vector3, Quaternion, Vector3, Quaternion, Boolean, Boolean, Single) Applies the transformation to make a transform defined by sourcePosition and sourceRotation move and rotate to targetPosition and targetRotation.
Public methodStatic memberApplyAlignment(Vector3, Quaternion, Vector3, Quaternion, Vector3, Quaternion, Boolean, Boolean, Single) Moves rootPosition and rotates rootRotation so that a child defined by childPosition and childRotation gets aligned to targetPosition and targetRotation.

See Also

Reference

TransformExt Class
UltimateXR.Extensions.Unity Namespace