InverseTransformDirection(int, float3)
Transforms direction from character space to local space. This operation isn't affected by scale or position of the transforms and the returned vector has the same length as the original direction. You can perform the opposite conversion, from local to character space using
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public readonly float3 InverseTransformDirection(int index, float3 direction)
Parameters
The index of the bone in Skeleton.Ids, for example from Skeleton.FindBoneIndex.
The direction in character space to transform.
Returns
Type | Description |
|---|---|
| float3 | The direction in local space. |