rapier-2d-rigid-body.component overview
Table of contents
utils
Rapier2dRigidBodyComponent (class)
Signature
export declare class Rapier2dRigidBodyComponent {
constructor(
protected readonly world: Rapier2dWorldComponent,
protected _colliderDescr: ColliderDesc[],
public readonly shape: Shape2DDescriptor,
protected _bodyDescr: RigidBodyDesc,
protected _colliderOptions: Omit<Omit<Body2DOptions, 'dynamic'>, 'mass'>
)
}
clone (method)
Signature
clone(): Rapier2dRigidBodyComponent
addToWorld (method)
Signature
addToWorld(world: Gg2dWorld<VisualTypeDocRepo2D, Rapier2dPhysicsTypeDocRepo>): void
removeFromWorld (method)
Signature
removeFromWorld(world: Gg2dWorld<VisualTypeDocRepo2D, Rapier2dPhysicsTypeDocRepo>): 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