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
head
The head.
public Transform head
Field Value
hips
The pelvis bone.
public Transform hips
Field Value
leftFoot
The third bone of the left leg.
public Transform leftFoot
Field Value
leftHand
The third bone of the left arm.
public Transform leftHand
Field Value
leftLowerArm
The second bone of the left arm.
public Transform leftLowerArm
Field Value
leftLowerLeg
The second bone of the left leg.
public Transform leftLowerLeg
Field Value
leftUpperArm
The first bone of the left arm.
public Transform leftUpperArm
Field Value
leftUpperLeg
The first bone of the left leg.
public Transform leftUpperLeg
Field Value
rightFoot
The third bone of the right leg.
public Transform rightFoot
Field Value
rightHand
The third bone of the right arm.
public Transform rightHand
Field Value
rightLowerArm
The second bone of the right arm.
public Transform rightLowerArm
Field Value
rightLowerLeg
The second bone of the right leg.
public Transform rightLowerLeg
Field Value
rightUpperArm
The first bone of the right arm.
public Transform rightUpperArm
Field Value
rightUpperLeg
The first bone of the right leg.
public Transform rightUpperLeg
Field Value
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
spine
The middle spine bone.
public Transform spine
Field Value
Methods
Contains(Transform, bool)
Returns true if the References contain the specified Transform
public bool Contains(Transform t, bool ignoreRoot = false)
Parameters
tTransformignoreRootbool
Returns
- bool
FromAvatar(Animator)
public static BipedRagdollReferences FromAvatar(Animator animator)
Parameters
animatorAnimator
Returns
FromBipedReferences(BipedReferences)
public static BipedRagdollReferences FromBipedReferences(BipedReferences biped)
Parameters
bipedBipedReferences
Returns
GetRagdollTransforms()
public Transform[] GetRagdollTransforms()
Returns
IsEmpty(bool)
public bool IsEmpty(bool considerRoot)
Parameters
considerRootbool
Returns
- bool
IsValid(ref string)
public bool IsValid(ref string msg)
Parameters
msgstring
Returns
- bool