VirtualBone

csharp
public sealed class VirtualBone

Namespace NodeWorld.Avatar.IK.

A bone of the solver: where it was read from the avatar and where the solver puts it.

Fields

readPosition

csharp
public Vector3 readPosition

Position read from the avatar this frame.

readRotation

csharp
public Quaternion readRotation

Rotation read from the avatar this frame.

solverPosition

csharp
public Vector3 solverPosition

Position the solver gives it.

solverRotation

csharp
public Quaternion solverRotation

Rotation the solver gives it.

localAxisToChild

csharp
public Vector3 localAxisToChild

Direction to the next bone of the chain, in this bone's space.

length

csharp
public float length

Distance to the next bone of the chain, in meters.

Constructors

VirtualBone

csharp
public VirtualBone(Vector3 position, Quaternion rotation)

A bone read at this position and rotation.

Methods

Read

csharp
public void Read(Vector3 position, Quaternion rotation)

Reads the bone's position and rotation, and resets the solver's to them.