melonJS
    Preparing search index...

    Interface AdapterOptions

    Common adapter constructor options. Concrete adapters may extend this with their own engine-specific options.

    interface AdapterOptions {
        gravity?: Vector2d | Vector3d;
    }
    Index
    gravity?: Vector2d | Vector3d

    world gravity vector, default (0, 0.98). A Vector3d gives it a depth component, for an adapter whose bodies have depth.