Table of Contents

Struct HumanMuscleJointLimits.MuscleLimit

Namespace
WitShells.WitPose

Anatomical limit definition for a single Unity Humanoid muscle channel.

public readonly struct HumanMuscleJointLimits.MuscleLimit
Inherited Members

Constructors

MuscleLimit(float, float, float, string, string)

public MuscleLimit(float min, float max, float neutral, string label, string group = "")

Parameters

min float
max float
neutral float
label string
group string

Fields

Group

Anatomical group name (e.g. "Spine", "Left Arm", "Left Fingers").

public readonly string Group

Field Value

string

Label

Short semantic label describing what the muscle controls.

public readonly string Label

Field Value

string

Max

Anatomical maximum in Unity's normalized muscle space (-1..1).

public readonly float Max

Field Value

float

Min

Anatomical minimum in Unity's normalized muscle space (-1..1).

public readonly float Min

Field Value

float

Neutral

Natural rest / neutral value (0 for almost all muscles).

public readonly float Neutral

Field Value

float

Methods

Clamp(float)

Clamp value to this joint's anatomical range.

public float Clamp(float value)

Parameters

value float

Returns

float

Lerp(float)

Remap a [0..1] t-value back to [Min..Max].

public float Lerp(float t)

Parameters

t float

Returns

float

Normalize(float)

Remap value from [Min..Max] to [0..1].

public float Normalize(float value)

Parameters

value float

Returns

float