Documentation

Unity Engine

Download Unity

Unity Engine

TransformDirection(int, float3)

Transforms direction from local space to character 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 character to local space using
Read time 1 minuteLast updated 4 hours ago

Definition

public readonly float3 TransformDirection(int index, float3 direction)

Parameters

index

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

direction

The direction in local space to transform.

Returns

Type

Description

float3The direction in character space.