BodyPart

csharp
public abstract class BodyPart

Namespace NodeWorld.Avatar.IK.

A part of the body the solver moves: the spine or one limb.

Fields

rootPosition

csharp
protected Vector3 rootPosition

Position of the part's root this frame.

rootRotation

csharp
protected Quaternion rootRotation

Rotation of the part's root this frame.

quality

csharp
protected int quality

Solver 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.