LegSettings

csharp
public sealed class LegSettings

Namespace NodeWorld.Avatar.IK.

Settings of one leg: how the foot reaches its target and how the knee follows.

Fields

positionWeight

csharp
public float positionWeight

How much the foot reaches the position of its target (0 to 1).

rotationWeight

csharp
public float rotationWeight

How much the foot takes the rotation of its target (0 to 1).

bendGoal

csharp
public Transform bendGoal

An object the knee bends toward, or null.

bendGoalWeight

csharp
public float bendGoalWeight

How much the knee bends toward bendGoal (0 to 1).

swivelOffset

csharp
public float swivelOffset

Turns the knee around the hip-to-foot axis, in degrees.

bendToTargetWeight

csharp
public float bendToTargetWeight

How much the knee bends toward the target's forward direction (0 to 1).

lengthMultiplier

csharp
public float lengthMultiplier

Scales the leg's length for the solver (0.01 to 2).

stretchCurve

csharp
public AnimationCurve stretchCurve

How the leg stretches with the distance to the target (distance ratio to stretch).

footPositionOffset

csharp
public Vector3 footPositionOffset

Runtime offset added to the foot's position.

heelPositionOffset

csharp
public Vector3 heelPositionOffset

Runtime offset added to the heel's position.

footRotationOffset

csharp
public Quaternion footRotationOffset

Runtime offset added to the foot's rotation.

IKPosition

csharp
public Vector3 IKPosition

Position of the foot target this frame (world space).

IKRotation

csharp
public Quaternion IKRotation

Rotation of the foot target this frame (world space).

useAnimatedBendNormal

csharp
public bool useAnimatedBendNormal

The knee bends along the animated pose's bend normal this frame instead of the solved one.