NodeWorld

LimbPart

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public sealed class LimbPart : BodyPart

Namespace NodeWorld.Avatar.IK.

An arm or a leg of the solver: three bones (four with a shoulder or toes) reaching for a target.

Methods

CreateArm

csharp
public static LimbPart CreateArm(PoseSample[] read, bool isLeft, bool hasShoulder, int rootReadIndex)

An arm part from the read pose.

CreateLeg

csharp
public static LimbPart CreateLeg(PoseSample[] read, bool isLeft, bool hasToes)

A leg part from the read pose.

Read

csharp
public void Read(PoseSample[] read, int rootIndex, int startIndex)

Reads the limb's bones from read.

Reset

csharp
public void Reset(PoseSample[] read)

Resets the limb to the read pose.

PreSolve

csharp
public void PreSolve(ArmSettings settings, Transform target, float scale)

Prepares the arm's target of this frame.

csharp
public void PreSolve(LegSettings settings, Transform target, float scale)

Prepares the leg's target of this frame.

ApplyOffsets

csharp
public void ApplyOffsets(ArmSettings settings, float scale)

Adds the runtime offsets of ArmSettings to the arm's target.

csharp
public void ApplyOffsets(LegSettings settings, float scale)

Adds the runtime offsets of LegSettings to the leg's target.

SolveArm

csharp
public void SolveArm(bool isLeft)

Solves the arm toward its target (shoulder, then elbow and hand).

SolveLeg

csharp
public void SolveLeg(bool stretch)

Solves the leg toward its target, stretching it when stretch is true.

ResetOffsets

csharp
public void ResetOffsets(ArmSettings settings)

Clears the runtime offsets of ArmSettings.

csharp
public void ResetOffsets(LegSettings settings)

Clears the runtime offsets of LegSettings.

Write

csharp
public void Write(PoseSample[] solved)

Writes the solved limb into solved.