C# Class Spine.Unity.Modules.SkeletonRagdoll

Inheritance: UnityEngine.MonoBehaviour
Mostra file Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Properties

Property Type Description
disableOtherConstraints bool
rootMass float
useGravity bool

Public Methods

Method 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

Method 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 method

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

GetRigidbody() public method

public GetRigidbody ( string boneName ) : Rigidbody
boneName string
return UnityEngine.Rigidbody

Remove() public method

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

SetSkeletonPosition() public method

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

SmoothMix() public method

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

Property Details

disableOtherConstraints public_oe property

public bool disableOtherConstraints
return bool

rootMass public_oe property

public float rootMass
return float

useGravity public_oe property

public bool useGravity
return bool