GetMuscleDefaultMax(int)
Get the default maximum value of rotation for a muscle in degrees.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AnimationModule
public static float GetMuscleDefaultMax(int i)
Parameters
Muscle index.
Returns
Type | Description |
|---|---|
| float |
Remarks
The default maximum applies to all three axes of rotation for the muscle. The indexing order for the muscles is the same as that of the HumanTrait.MuscleName array.
using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour{ void Start() { string[] muscleName = HumanTrait.MuscleName; for (int i = 0; i < HumanTrait.BoneCount; ++i) { Debug.Log(muscleName[i] + " min: " + HumanTrait.GetMuscleDefaultMin(i) + " max: " + HumanTrait.GetMuscleDefaultMax(i)); } }}
Additional Resources: HumanLimit.max, HumanTrait.GetMuscleDefaultMin.