Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MuscleFromBone(int, int)

Obtain the muscle index for a particular bone index and "degree of freedom".
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public static int MuscleFromBone(int i, int dofIndex)

Parameters

Bone index.

dofIndex

Number representing a "degree of freedom": 0 for X-Axis, 1 for Y-Axis, 2 for Z-Axis.

Returns

Type

Description

int

Remarks

The indexing order of the bones is the same as that of the HumanTrait.BoneName array.