InverseTransformPositionRotation(int, ref float3, ref quaternion)
Transforms a position and rotation in character space to local space. You can perform the opposite conversion, from local to character space using AnimationStream.TransformPositionRotation.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
InverseTransformPositionRotation(int, float3, quaternion)
public readonly void InverseTransformPositionRotation(int index, ref float3 position, ref quaternion rotation)
Parameters
The index of the bone in Skeleton.Ids, for example from Skeleton.FindBoneIndex.
The position in character space to transform.
The rotation in character space to transform.