phaser - v4.0.0-rc.4
    Preparing search index...

    A component to manipulate world gravity for Matter.js bodies.

    interface Gravity {
        setIgnoreGravity(value: boolean): this;
    }

    Implemented by

    Index

    Methods

    • A togglable function for ignoring world gravity in real-time on the current body.

      Parameters

      • value: boolean

        Set to true to ignore the effect of world gravity, or false to not ignore it.

      Returns this