Table of Contents

Struct BipedRagdollReferences

Namespace
VoxelPlayground.Ragdoll
Assembly
GamePlay.dll

Holds references to all Transforms required for a biped ragdoll.

[Serializable]
public struct BipedRagdollReferences

Fields

chest

The last spine bone.

public Transform chest

Field Value

Transform

head

The head.

public Transform head

Field Value

Transform

hips

The pelvis bone.

public Transform hips

Field Value

Transform

leftFoot

The third bone of the left leg.

public Transform leftFoot

Field Value

Transform

leftHand

The third bone of the left arm.

public Transform leftHand

Field Value

Transform

leftLowerArm

The second bone of the left arm.

public Transform leftLowerArm

Field Value

Transform

leftLowerLeg

The second bone of the left leg.

public Transform leftLowerLeg

Field Value

Transform

leftUpperArm

The first bone of the left arm.

public Transform leftUpperArm

Field Value

Transform

leftUpperLeg

The first bone of the left leg.

public Transform leftUpperLeg

Field Value

Transform

rightFoot

The third bone of the right leg.

public Transform rightFoot

Field Value

Transform

rightHand

The third bone of the right arm.

public Transform rightHand

Field Value

Transform

rightLowerArm

The second bone of the right arm.

public Transform rightLowerArm

Field Value

Transform

rightLowerLeg

The second bone of the right leg.

public Transform rightLowerLeg

Field Value

Transform

rightUpperArm

The first bone of the right arm.

public Transform rightUpperArm

Field Value

Transform

rightUpperLeg

The first bone of the right leg.

public Transform rightUpperLeg

Field Value

Transform

root

The root transform is the parent of all the biped's bones and should be located at ground level.

public Transform root

Field Value

Transform

spine

The middle spine bone.

public Transform spine

Field Value

Transform

Methods

Contains(Transform, bool)

Returns true if the References contain the specified Transform

public bool Contains(Transform t, bool ignoreRoot = false)

Parameters

t Transform
ignoreRoot bool

Returns

bool

FromAvatar(Animator)

public static BipedRagdollReferences FromAvatar(Animator animator)

Parameters

animator Animator

Returns

BipedRagdollReferences

FromBipedReferences(BipedReferences)

public static BipedRagdollReferences FromBipedReferences(BipedReferences biped)

Parameters

biped BipedReferences

Returns

BipedRagdollReferences

GetRagdollTransforms()

public Transform[] GetRagdollTransforms()

Returns

Transform[]

IsEmpty(bool)

public bool IsEmpty(bool considerRoot)

Parameters

considerRoot bool

Returns

bool

IsValid(ref string)

public bool IsValid(ref string msg)

Parameters

msg string

Returns

bool