Forces
This example shows how to apply forces to a rigid body.
Use WASD to move the box.
this.world.addSystem(new PlayerMovementSystem(this.world));
// In PlayerMovementSystem:
const force = vec3.fromValues(
input.moveDirection[0] * 10,
0,
-input.moveDirection[1] * 10,
);
world.applyCentralForce(entity, force);