- Preparing search index...
- The search index is not available
elixr
Constructors
constructor
- new Physics(gravity: Vector3): Physics
-
Properties
[PRIVATE]
[PRIVATE]
: { rigidBodyMap
: Map<RigidBody, Rigidbody>; world
: World; }
Type declaration
-
rigidBodyMap: Map<RigidBody, Rigidbody>
-
world: World
Static
module
module: __module
Accessors
world
- get world(): World
-
Returns World
Methods
associateRigidBody
- associateRigidBody(rapierBody: RigidBody, wrapperBody: Rigidbody): void
-
Returns void
attachColliderToRigidbody
- attachColliderToRigidbody(collider: Collider, rigidbody: Rigidbody): void
-
Returns void
detachColliderFromRigidbody
- detachColliderFromRigidbody(collider: Collider): void
-
Returns void
dissociateRigidBody
- dissociateRigidBody(rapierBody: RigidBody): void
-
Returns void
getWrapperFromBody
- getWrapperFromBody(rapierBody: RigidBody): Rigidbody
-
update
- update(delta: number): void
-
Returns void