文档

Unity Engine

Unity Engine

GetMuscleDefaultMax(int)

Get the default maximum value of rotation for a muscle in degrees.
阅读时间1 分钟最后更新于 25 天前

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