LocomotionSettings

csharp
public sealed class LocomotionSettings

Namespace NodeWorld.Avatar.IK.

Settings of the procedural steps: when the feet step and how, when no foot is tracked.

Fields

weight

csharp
public float weight

How much the procedural locomotion is applied (0 to 1).

footDistance

csharp
public float footDistance

Distance of each foot from the body's center, in meters.

stepThreshold

csharp
public float stepThreshold

A foot steps when its target is farther than this from it, in meters.

angleThreshold

csharp
public float angleThreshold

A foot steps when the body turns more than this from it, in degrees.

centerOfMassAngleMultiplier

csharp
public float centerOfMassAngleMultiplier

How much the center of mass's angle adds to the step distance.

maxVelocity

csharp
public float maxVelocity

Highest speed of the body the steps keep up with, in meters per second.

velocityPrediction

csharp
public float velocityPrediction

How far ahead the steps aim, in seconds of the body's speed.

maxLegStretch

csharp
public float maxLegStretch

Longest a leg stretches before a step is forced (share of its length).

rootSpeed

csharp
public float rootSpeed

How fast the root follows the body, in meters per second.

stepSpeed

csharp
public float stepSpeed

Speed of one step (steps per second).

stepHeight

csharp
public AnimationCurve stepHeight

Height of the foot over a step (step progress to meters).

heelHeight

csharp
public AnimationCurve heelHeight

Height of the heel over a step (step progress to meters).

maxBodyYOffset

csharp
public float maxBodyYOffset

Highest the body bobs up and down while stepping, in meters.

relaxLegTwistMinAngle

csharp
public float relaxLegTwistMinAngle

Leg twist under this angle is relaxed, in degrees.

relaxLegTwistSpeed

csharp
public float relaxLegTwistSpeed

How fast the leg twist relaxes, in degrees per second.

stepInterpolation

csharp
public InterpolationMode stepInterpolation

Easing of a step.

centerOfMassOffset

csharp
public Vector3 centerOfMassOffset

Offset of the center of mass from the head, in the root's space.

blockingLayers

csharp
public LayerMask blockingLayers

Layers that block a step (raycasts from the foot to its next place).

blockingEnabled

csharp
public bool blockingEnabled

Steps check the blockingLayers.

raycastRadius

csharp
public float raycastRadius

Radius of the blocking raycast, in meters.

raycastHeight

csharp
public float raycastHeight

Height the blocking raycast starts from, in meters.