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

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

    interface Mass {
        setMass(value: number): this;
    }

    Implemented by

    Index

    Methods

    Methods

    • Sets the mass of the physics body

      Parameters

      • value: number

        New value for the mass of the body.

      Returns this