For configuring the gravity of a scene
Gravity
const gravity: Gravity = { scale: 0.001 x: 0, y: 1 } Copy
const gravity: Gravity = { scale: 0.001 x: 0, y: 1 }
Optional
The magnitude of the gravitational acceleration. Set to 0 if you want a scene with physics but no gravity, default is 0.001
Generated using TypeDoc
For configuring the gravity of a scene
Gravity
Example