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