C# 클래스 Spine.Unity.Modules.SkeletonRagdoll2D

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: EsotericSoftware/spine-runtimes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
disableOtherConstraints bool
disableUpdateBones bool
flipYInitially bool
gravityScale float
rootMass float
spawnKinematic bool

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

Apply() 공개 메소드

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

GetRigidbody() 공개 메소드

public GetRigidbody ( string boneName ) : Rigidbody2D
boneName string
리턴 UnityEngine.Rigidbody2D

Remove() 공개 메소드

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

SetSkeletonPosition() 공개 메소드

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

SmoothMix() 공개 메소드

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

프로퍼티 상세

disableOtherConstraints 공개적으로 프로퍼티

public bool disableOtherConstraints
리턴 bool

disableUpdateBones 공개적으로 프로퍼티

public bool disableUpdateBones
리턴 bool

flipYInitially 공개적으로 프로퍼티

public bool flipYInitially
리턴 bool

gravityScale 공개적으로 프로퍼티

public float gravityScale
리턴 float

rootMass 공개적으로 프로퍼티

public float rootMass
리턴 float

spawnKinematic 공개적으로 프로퍼티

public bool spawnKinematic
리턴 bool