C# Class Spine.Unity.Modules.SkeletonRagdoll2D

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

Méthodes publiques

Свойство Type Description
disableOtherConstraints bool
disableUpdateBones bool
flipYInitially bool
gravityScale float
rootMass float
spawnKinematic bool

Méthodes publiques

Méthode Description
Apply ( ) : void

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

GetRigidbody ( string boneName ) : Rigidbody2D
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, GameObject go, Skeleton skeleton ) : List
FlipScale ( bool flipX, bool flipY ) : Vector3
GetPropagatedRotation ( Bone b ) : float
OnDrawGizmosSelected ( ) : void
RecursivelyCreateBoneProxies ( Bone b ) : void

Generates the ragdoll simulation's Transform and joint setup.

SmoothMixCoroutine ( float target, float duration ) : IEnumerator
Start ( ) : IEnumerator
UpdateSpineSkeleton ( ISkeletonAnimation animatedSkeleton ) : void

Performed every skeleton animation update to translate Unity Transforms positions into Spine bone transforms.

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 ) : Rigidbody2D
boneName string
Résultat UnityEngine.Rigidbody2D

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

disableUpdateBones public_oe property

public bool disableUpdateBones
Résultat bool

flipYInitially public_oe property

public bool flipYInitially
Résultat bool

gravityScale public_oe property

public float gravityScale
Résultat float

rootMass public_oe property

public float rootMass
Résultat float

spawnKinematic public_oe property

public bool spawnKinematic
Résultat bool