Function applyPhysicsImpulse
-
Parameters
- world: PhysicsWorld
The physics world.
- body: PhysicsBody
The body to push.
- impulse: Vec3
World-space impulse vector (kg·m/s).
Optionalpoint: Vec3World point of application; defaults to the body's current position.
Returns void
- world: PhysicsWorld
Apply a one-shot linear impulse (kg·m/s) to a body at a world
point(defaults to the body's current position / centre of mass), waking it if asleep. Used to shoot, throw, or shove a prop.