Gravity

You can change the gravity of your game at any time.

Gravity is a constant force that effects all rigid bodies with the dynamictype. Learn more about Rigid Bodies.

Changing Gravity

We can change the gravity of a world as follows.

world.simulation.setGravity({ x: 0, y: -9.81, z: 0 });

The default gravity in HYTOPIA is { x: 0, y: -32, z: 0 }.

Last updated