Interface Gravity

For configuring the gravity of a scene

Gravity

Example

 const gravity: Gravity = {
scale: 0.001
x: 0,
y: 1
}
interface Gravity {
    scale?: number;
    x: number;
    y: number;
}

Hierarchy (view full)

Properties

Properties

scale?: number

The magnitude of the gravitational acceleration. Set to 0 if you want a scene with physics but no gravity, default is 0.001

x: number
y: number

Generated using TypeDoc