HumanoidReferences

csharp
public sealed class HumanoidReferences

Namespace NodeWorld.Avatar.IK.

The bones of a humanoid avatar the full-body IK drives, read from its Animator.

Fields

root

csharp
public Transform root

The avatar's root object.

pelvis

csharp
public Transform pelvis

Hips bone.

spine

csharp
public Transform spine

First spine bone.

chest

csharp
public Transform chest

Chest bone, or null.

neck

csharp
public Transform neck

Neck bone, or null.

csharp
public Transform head

Head bone.

leftShoulder

csharp
public Transform leftShoulder

Left shoulder (clavicle) bone, or null.

leftUpperArm

csharp
public Transform leftUpperArm

Left upper arm bone.

leftForearm

csharp
public Transform leftForearm

Left forearm bone.

leftHand

csharp
public Transform leftHand

Left hand bone.

rightShoulder

csharp
public Transform rightShoulder

Right shoulder (clavicle) bone, or null.

rightUpperArm

csharp
public Transform rightUpperArm

Right upper arm bone.

rightForearm

csharp
public Transform rightForearm

Right forearm bone.

rightHand

csharp
public Transform rightHand

Right hand bone.

leftThigh

csharp
public Transform leftThigh

Left thigh bone.

leftCalf

csharp
public Transform leftCalf

Left calf bone.

leftFoot

csharp
public Transform leftFoot

Left foot bone.

leftToes

csharp
public Transform leftToes

Left toes bone, or null.

rightThigh

csharp
public Transform rightThigh

Right thigh bone.

rightCalf

csharp
public Transform rightCalf

Right calf bone.

rightFoot

csharp
public Transform rightFoot

Right foot bone.

rightToes

csharp
public Transform rightToes

Right toes bone, or null.

Properties

HasRequiredCore

csharp
public bool HasRequiredCore { get; }

Root, pelvis, spine and head are all set.

HasArms

csharp
public bool HasArms { get; }

Both arms are complete (upper arm, forearm and hand on each side).

HasLegs

csharp
public bool HasLegs { get; }

Both legs are complete (thigh, calf and foot on each side).

Methods

IsValid

csharp
public bool IsValid(out string error)

The references can drive the IK: the core bones are set, and arms and legs are each complete or absent. error says what is missing.