BodyPart
La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.
csharp
public abstract class BodyPartNamespace NodeWorld.Avatar.IK.
A part of the body the solver moves: the spine or one limb.
Fields
rootPosition
csharp
protected Vector3 rootPositionPosition of the part's root this frame.
rootRotation
csharp
protected Quaternion rootRotationRotation of the part's root this frame.
quality
csharp
protected int qualitySolver quality (0 to 2): fewer iterations at 0.
Properties
Length
csharp
public float Length { get; protected set; }Length of the part, in meters.
Methods
SetQuality
csharp
public void SetQuality(int value)Sets the solver quality (0 to 2).
MovePosition
csharp
public void MovePosition(Vector3 position)Moves the whole part so its first bone is at position.
MoveRotation
csharp
public void MoveRotation(Quaternion rotation)Rotates the whole part around its first bone to rotation.
TranslateRoot
csharp
public void TranslateRoot(Vector3 newRootPosition, Quaternion newRootRotation)Moves and rotates the part with its root.
