Class RagdollExperimental
Index
Constructors
constructor
-
new Ragdoll(
skeleton: Skeleton,
rootTransformNode: Mesh | TransformNode,
config: RagdollBoneProperties[],
): RagdollExperimentalConstruct a new Ragdoll object. Once ready, it can be made dynamic by calling
RagdollmethodParameters
- skeleton: Skeleton
The skeleton containing bones to be physicalized
- rootTransformNode: Mesh | TransformNode
The mesh or its transform used by the skeleton
- config: RagdollBoneProperties[]
an array of
RagdollBonePropertiescorresponding to bones and their properties used to instanciate physics bodies
Returns Ragdoll
- skeleton: Skeleton
Properties
Experimentalpause Sync
pauseSync: boolean = false
Pause synchronization between physics and bone position/orientation
Methods
dispose
-
ExperimentalDispose resources and remove physics objects
Returns void
get Aggregate
-
ExperimentalReturns the aggregate corresponding to the ragdoll bone index
Parameters
- index: number
ragdoll bone aggregate index
Returns PhysicsAggregate
the aggregate for the bone index for the root aggregate if index is invalid
- index: number
get Constraints
-
Experimentalreturns an array of created constraints
Returns PhysicsConstraint[]
array of created constraints
ragdoll
-
ExperimentalEnable ragdoll mode. Create physics objects and make them dynamic.
Returns void
Ragdoll for Physics V2