Phaser API Documentation

  Version: 
Filter
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Namespace: Gravity
Phaser.Physics.Matter.Components.Gravity

Methods

setIgnoreGravity(value)
Focus
Focus

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.

Examples:
Since: 3.0.0
Focus
Focus