What it does
scene.setGravity sets Gravity on a scene object. It takes x, y and z.
Signature
scene.setGravity(x, y, z)Arguments
xyz
Example · generated
function start() { scene.setGravity(0, 2, 0);}scene.setGravity is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.