Motion
Get Motion

ReferenceScript nodesPhysics

Set Gravity

Sets a physics world's gravity: the 2D world's in pixels a second a second (y down), the 3D world's in metres (y up).

PhysicssetGravity

Inputs

PinTypeStarts atNotes
inwhat happens next––
Xxnumber0–
Yynumber980–
Zznumber0–
Worldworldchoice2DOne of: 2D, 3D.

Outputs

PinType
thenwhat happens next

The code it becomes

The graph below written as a script would write it.

// On Scene Startstage.setGravity({ x: 0, y: 980, z: 0 }, Math.round(0) === 1 ? "3d" : "2d");

In a graph

The node with what starts it and Print to show what it gives, as Studio draws them.