ドキュメント

Unity Engine

Unity Engine

GetMuscleDefaultMax(int)

Get the default maximum value of rotation for a muscle in degrees.
読み終わるまでの所要時間 1 分最終更新 22日前

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.

Examples

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)); } }}