C# Class Spine.Unity.Modules.SkeletonRagdoll

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Méthodes publiques

Свойство Type Description
disableOtherConstraints bool
rootMass float
useGravity bool

Méthodes publiques

Méthode Description
Apply ( ) : void

Instantiates the ragdoll simulation and applies its transforms to the skeleton.

GetRigidbody ( string boneName ) : Rigidbody
Remove ( ) : void

Removes the ragdoll instance and effect from the animated skeleton.

SetSkeletonPosition ( Vector3 worldPosition ) : void

Set the transform world position while preserving the ragdoll parts world position.

SmoothMix ( float target, float duration ) : Coroutine

Transitions the mix value from the current value to a target value.

Private Methods

Méthode Description
AttachBoundingBoxRagdollColliders ( Bone b ) : List
GetPropagatedRotation ( Bone b ) : float
RecursivelyCreateBoneProxies ( Bone b ) : void
SmoothMixCoroutine ( float target, float duration ) : IEnumerator
Start ( ) : IEnumerator
UpdateSpineSkeleton ( ISkeletonAnimation skeletonRenderer ) : void

Method Details

Apply() public méthode

Instantiates the ragdoll simulation and applies its transforms to the skeleton.
public Apply ( ) : void
Résultat void

GetRigidbody() public méthode

public GetRigidbody ( string boneName ) : Rigidbody
boneName string
Résultat UnityEngine.Rigidbody

Remove() public méthode

Removes the ragdoll instance and effect from the animated skeleton.
public Remove ( ) : void
Résultat void

SetSkeletonPosition() public méthode

Set the transform world position while preserving the ragdoll parts world position.
public SetSkeletonPosition ( Vector3 worldPosition ) : void
worldPosition UnityEngine.Vector3
Résultat void

SmoothMix() public méthode

Transitions the mix value from the current value to a target value.
public SmoothMix ( float target, float duration ) : Coroutine
target float
duration float
Résultat UnityEngine.Coroutine

Property Details

disableOtherConstraints public_oe property

public bool disableOtherConstraints
Résultat bool

rootMass public_oe property

public float rootMass
Résultat float

useGravity public_oe property

public bool useGravity
Résultat bool