rapier-3d-rigid-body.component overview
Table of contents
utils
Rapier3dRigidBodyComponent (class)
Signature
export declare class Rapier3dRigidBodyComponent {
constructor(
protected readonly world: Rapier3dWorldComponent,
protected _colliderDescr: ColliderDesc[],
public readonly shape: Shape3DDescriptor,
protected _bodyDescr: RigidBodyDesc,
protected _colliderOptions: Omit<Omit<Body3DOptions, 'dynamic'>, 'mass'>
)
}
clone (method)
Signature
clone(): Rapier3dRigidBodyComponent
addToWorld (method)
Signature
addToWorld(world: Gg3dWorld<VisualTypeDocRepo3D, Rapier3dPhysicsTypeDocRepo>): void
removeFromWorld (method)
Signature
removeFromWorld(world: Gg3dWorld<VisualTypeDocRepo3D, Rapier3dPhysicsTypeDocRepo>): void
resetMotion (method)
Signature
resetMotion(): void
dispose (method)
Signature
dispose(): void
entity (property)
Signature
entity: any
_nativeBody (property)
Signature
_nativeBody: any
_nativeBodyColliders (property)
Signature
_nativeBodyColliders: any[] | null
name (property)
Signature
name: string
collisionGroups (property)
Signature
collisionGroups: any