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

    Provides methods used for setting the immovable properties of an Arcade Physics Body.

    interface Immovable {
        setImmovable(value?: boolean): this;
    }

    Implemented by

    Index

    Methods

    Methods

    • Sets if this Body can be separated during collisions with other bodies.

      When a body is immovable it means it won't move at all, not even to separate it from collision overlap. If you just wish to prevent a body from being knocked around by other bodies, see the setPushable method instead.

      Parameters

      • Optionalvalue: boolean

        Sets if this body will be separated during collisions with other bodies. Default true.

      Returns this