FullBodyVrOffsetModifier

csharp
public abstract class FullBodyVrOffsetModifier : MonoBehaviour

Namespace NodeWorld.Avatar.IK.

Base of the components that add offsets to the IK's body parts each frame, before it solves.

Fields

weight

csharp
public float weight

How much of the offset is applied (0 to 1).

ik

csharp
public FullBodyVrIkComponent ik

The IK component of the avatar.

Properties

DeltaTime

csharp
protected float DeltaTime { get; }

Time since the last offset, in seconds.

Methods

ModifyOffset

csharp
protected abstract void ModifyOffset()

Adds this frame's offsets to the solver (called before each solve).

Start

csharp
protected virtual void Start()

Hooks the modifier to the IK's BeforeSolve.

OnDestroy

csharp
protected virtual void OnDestroy()

Unhooks the modifier from the IK.