TeslasuitDocumentation
Plugins

Utilities

Classes#

Conversion#

Conversion

Methods

TsRotationToUnityRotation#

Quaternion TsRotationToUnityRotation(TsQuat quat);

Parameters

quat: TsQuat

Returns: Quaternion


TsVector3ToUnityVector3#

Vector3 TsVector3ToUnityVector3(TsVec3f vec);

Parameters

vec: TsVec3f

Returns: Vector3



HandAvatarMapper#

HandAvatarMapper

Fields

PhalanxKeyWords Dictionary< string, string[]>

WristKeywords string[]

PhalanxPartKeywords Dictionary< string, string[]>

ExtraKeywords Dictionary< TsHumanBoneIndex, string[]>

Methods

IsDistal#

bool IsDistal(string name);

Parameters

name: string

Returns: bool


MatchKeywords#

bool MatchKeywords(string name, string[] keywords);

Parameters

name: string

keywords: string[]

Returns: bool


FindPhalanxTransform#

Transform FindPhalanxTransform(TsHumanBoneIndex key, Transform root);

Parameters

key: TsHumanBoneIndex

root: Transform

Returns: Transform


FindWristTransform#

Transform FindWristTransform(Transform root);

Parameters

root: Transform

Returns: Transform



TransformUtils#

TransformUtils

Methods

FindChildRecursive#

Transform FindChildRecursive(Transform parent, string childName);

Parameters

parent: Transform

childName: string

Returns: Transform


IterateChildsRecursive#

void IterateChildsRecursive(Transform parent, Func< Transform, bool > childFn);

Parameters

parent: Transform

childFn: Func< Transform, bool >