Documentation

Unity Engine

Download Unity

Unity Engine

InverseTransformVector(int, float3)

Transforms a vector from character space to local space. This operation isn't affected by position of the transforms, but it is affected by scale. The returned vector may have a different length than the original vector. You can perform the opposite conversion, from local to character space using
Read time 1 minuteLast updated 4 hours ago

Definition

public readonly float3 InverseTransformVector(int index, float3 vector)

Parameters

index

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

vector

The vector in character space to transform.

Returns

Type

Description

float3The vector in local space.