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

    Provides methods used for setting the pushable property of an Arcade Physics Body.

    interface Pushable {
        setPushable(value?: boolean): this;
    }

    Implemented by

    Index

    Methods

    Methods

    • Sets if this Body can be pushed by another Body.

      A body that cannot be pushed will reflect back all of the velocity it is given to the colliding body. If that body is also not pushable, then the separation will be split between them evenly.

      If you want your body to never move or seperate at all, see the setImmovable method.

      Parameters

      • Optionalvalue: boolean

        Sets if this body can be pushed by collisions with another Body. Default true.

      Returns this