Skip to content

@modoki/engine / index / applyImpulse3D

Function: applyImpulse3D() ​

applyImpulse3D(world, entity, x, y, z, wakeUp?): boolean

Apply an instantaneous linear impulse (world-unit momentum) — the one-shot velocity kick for jumps, knockback, launches. Returns false if the entity has no dynamic body yet.

Parameters ​

world ​

World

entity ​

Entity

x ​

number

y ​

number

z ​

number

wakeUp? ​

boolean = true

Returns ​

boolean

Built with Modoki.