Documentation

Unity Engine

Download Unity

Unity Engine

InverseTransformRotation(int, quaternion)

Transforms a rotation in character space to local space. You can perform the opposite conversion, from local to character space using AnimationStream.TransformRotation.
Read time 1 minuteLast updated 4 hours ago

Definition

public readonly quaternion InverseTransformRotation(int index, quaternion rotation)

Parameters

index

The index of the bone in Skeleton.Ids, for example from Skeleton.FindBoneIndex.

rotation

The rotation in character space to transform.

Returns

Type

Description

quaternionThe rotation in local space.