C# Class RootMotion.BipedReferences

Afficher le fichier Open project: Alx666/ProjectPhoenix Class Usage Examples

Méthodes publiques

Свойство Type Description
eyes UnityEngine.Transform[]
head UnityEngine.Transform
leftCalf Transform
leftFoot Transform
leftForearm Transform
leftHand Transform
leftThigh Transform
leftUpperArm Transform
pelvis Transform
rightCalf Transform
rightFoot Transform
rightForearm Transform
rightHand Transform
rightThigh Transform
rightUpperArm Transform
root Transform
spine Transform[]

Méthodes publiques

Méthode Description
AssignHumanoidReferences ( BipedReferences &references, Animator animator, AutoDetectParams autoDetectParams ) : void

Fills in BipedReferences using Animator.GetBoneTransform().

AutoDetectReferences ( BipedReferences &references, Transform root, AutoDetectParams autoDetectParams ) : bool

Automatically detects biped bones. Returns true if a valid biped has been referenced.

CheckSetupError ( BipedReferences references, bool log ) : bool

Checks the setup for definite problems.

CheckSetupWarning ( BipedReferences references, bool log ) : bool

Checks the setup for possible problems.

DetectReferencesByNaming ( BipedReferences &references, Transform root, AutoDetectParams autoDetectParams ) : void

Detects the references based on naming and hierarchy.

IsEmpty ( bool includeRoot ) : bool

Gets a value indicating whether this BipedReferences is empty. If includeRoot is false, returns true(is empty) even if root Transform has been assigned.

Private Methods

Méthode Description
AddBoneToEyes ( Transform bone, BipedReferences &references, AutoDetectParams autoDetectParams ) : bool
AddBoneToHierarchy ( Transform &bones, Transform transform ) : void
AddBoneToSpine ( Transform bone, BipedReferences &references, AutoDetectParams autoDetectParams ) : bool
CheckEyesError ( BipedReferences references, bool log ) : bool
CheckEyesWarning ( BipedReferences references, bool log ) : bool
CheckFacingAxisWarning ( BipedReferences references, bool log ) : bool
CheckLimbError ( Transform bone1, Transform bone2, Transform bone3, bool log ) : bool
CheckLimbWarning ( Transform bone1, Transform bone2, Transform bone3, bool log ) : bool
CheckRootHeightWarning ( BipedReferences references, bool log ) : bool
CheckSpineError ( BipedReferences references, bool log ) : bool
CheckSpineWarning ( BipedReferences references, bool log ) : bool
DetectLimb ( RootMotion.BipedNaming boneType, RootMotion.BipedNaming boneSide, Transform &firstBone, Transform &secondBone, Transform &lastBone, Transform transforms ) : void
GetVerticalOffset ( Vector3 p1, Vector3 p2, Quaternion rotation ) : float
IsNeckBone ( Transform bone, Transform leftUpperArm ) : bool

Method Details

AssignHumanoidReferences() public static méthode

Fills in BipedReferences using Animator.GetBoneTransform().
public static AssignHumanoidReferences ( BipedReferences &references, Animator animator, AutoDetectParams autoDetectParams ) : void
references BipedReferences
animator UnityEngine.Animator
autoDetectParams AutoDetectParams
Résultat void

AutoDetectReferences() public static méthode

Automatically detects biped bones. Returns true if a valid biped has been referenced.
public static AutoDetectReferences ( BipedReferences &references, Transform root, AutoDetectParams autoDetectParams ) : bool
references BipedReferences
root UnityEngine.Transform
autoDetectParams AutoDetectParams
Résultat bool

CheckSetupError() public static méthode

Checks the setup for definite problems.
public static CheckSetupError ( BipedReferences references, bool log ) : bool
references BipedReferences
log bool
Résultat bool

CheckSetupWarning() public static méthode

Checks the setup for possible problems.
public static CheckSetupWarning ( BipedReferences references, bool log ) : bool
references BipedReferences
log bool
Résultat bool

DetectReferencesByNaming() public static méthode

Detects the references based on naming and hierarchy.
public static DetectReferencesByNaming ( BipedReferences &references, Transform root, AutoDetectParams autoDetectParams ) : void
references BipedReferences
root UnityEngine.Transform
autoDetectParams AutoDetectParams
Résultat void

IsEmpty() public méthode

Gets a value indicating whether this BipedReferences is empty. If includeRoot is false, returns true(is empty) even if root Transform has been assigned.
public IsEmpty ( bool includeRoot ) : bool
includeRoot bool
Résultat bool

Property Details

eyes public_oe property

The eyes.
public Transform[],UnityEngine eyes
Résultat UnityEngine.Transform[]

head public_oe property

The head.
public Transform,UnityEngine head
Résultat UnityEngine.Transform

leftCalf public_oe property

The second bone of the left leg.
public Transform leftCalf
Résultat Transform

leftFoot public_oe property

The third bone of the left leg.
public Transform leftFoot
Résultat Transform

leftForearm public_oe property

The second bone of the left arm.
public Transform leftForearm
Résultat Transform

leftHand public_oe property

The third bone of the left arm.
public Transform leftHand
Résultat Transform

leftThigh public_oe property

The first bone of the left leg.
public Transform leftThigh
Résultat Transform

leftUpperArm public_oe property

The first bone of the left arm.
public Transform leftUpperArm
Résultat Transform

pelvis public_oe property

The pelvis (hip) bone.
public Transform pelvis
Résultat Transform

rightCalf public_oe property

The second bone of the right leg.
public Transform rightCalf
Résultat Transform

rightFoot public_oe property

The third bone of the right leg.
public Transform rightFoot
Résultat Transform

rightForearm public_oe property

The second bone of the right arm.
public Transform rightForearm
Résultat Transform

rightHand public_oe property

The third bone of the right arm.
public Transform rightHand
Résultat Transform

rightThigh public_oe property

The first bone of the right leg.
public Transform rightThigh
Résultat Transform

rightUpperArm public_oe property

The first bone of the right arm.
public Transform rightUpperArm
Résultat Transform

root public_oe property

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

spine public_oe property

The spine hierarchy. Should not contain any bone deeper in the hierarchy than the arms (neck or head).
public Transform[] spine
Résultat Transform[]