LimbPart
La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.
public sealed class LimbPart : BodyPartNamespace 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
public static LimbPart CreateArm(PoseSample[] read, bool isLeft, bool hasShoulder, int rootReadIndex)An arm part from the read pose.
CreateLeg
public static LimbPart CreateLeg(PoseSample[] read, bool isLeft, bool hasToes)A leg part from the read pose.
Read
public void Read(PoseSample[] read, int rootIndex, int startIndex)Reads the limb's bones from read.
Reset
public void Reset(PoseSample[] read)Resets the limb to the read pose.
PreSolve
public void PreSolve(ArmSettings settings, Transform target, float scale)Prepares the arm's target of this frame.
public void PreSolve(LegSettings settings, Transform target, float scale)Prepares the leg's target of this frame.
ApplyOffsets
public void ApplyOffsets(ArmSettings settings, float scale)Adds the runtime offsets of ArmSettings to the arm's target.
public void ApplyOffsets(LegSettings settings, float scale)Adds the runtime offsets of LegSettings to the leg's target.
SolveArm
public void SolveArm(bool isLeft)Solves the arm toward its target (shoulder, then elbow and hand).
SolveLeg
public void SolveLeg(bool stretch)Solves the leg toward its target, stretching it when stretch is true.
ResetOffsets
public void ResetOffsets(ArmSettings settings)Clears the runtime offsets of ArmSettings.
public void ResetOffsets(LegSettings settings)Clears the runtime offsets of LegSettings.
Write
public void Write(PoseSample[] solved)Writes the solved limb into solved.
