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

    Provides methods used for getting and setting the static state of a physics body.

    interface Static {
        isStatic(): boolean;
        setStatic(value: boolean): this;
    }

    Implemented by

    Index

    Methods

    • Returns true if the body is static, otherwise false for a dynamic body.

      Returns boolean

    • Changes the physics body to be either static true or dynamic false.

      Parameters

      • value: boolean

        true to set the body as being static, or false to make it dynamic.

      Returns this