dist/carrot.js
/**
    * Disables physics on a sprite by setting its body to null.
    *
    * @method Carrot.Physics#disable
    * @param {Carrot.Sprite} entity - The sprite to get its physics disabled.
    */
Disables physics on a sprite by setting its body to null.
@method Carrot.Physics#disable
@param {Carrot.Sprite} entity - The sprite to get its physics disabled.
Disables physics on a sprite by setting its body to null . @method Carrot . Physics#disable @param { Carrot . Sprite } entity - The sprite to get its physics disabled .
disable(entity)
    {
        if (entity.body !== null)
        {
            entity.body = null;
        }
    }
disable ( entity ) { if ( entity . body !== null ) { entity . body = null ; } }
Disables physics on a sprite by setting its body to null.
Disables physics on a sprite by setting its body to null .