Phaser API Documentation

  Version: 
setIgnoreGravity(value)

Description:

A togglable function for ignoring world gravity in real-time on the current body.

Parameters:

name type description
value boolean

Set to true to ignore the effect of world gravity, or false to not ignore it.

Returns:
Description:

This Game Object.

Since: 3.0.0