Scope: static
Source: src/physics/matter-js/components/Gravity.js#L7
Since: 3.0.0
Static functions
setIgnoreGravity
<instance> setIgnoreGravity(value)
Description:
A togglable function for ignoring world gravity in real-time on the current body.
Parameters:
name | type | optional | description |
---|---|---|---|
value | boolean | No | Set to true to ignore the effect of world gravity, or false to not ignore it. |
Returns: Phaser.Physics.Matter.Components.Gravity - This Game Object instance.
Source: src/physics/matter-js/components/Gravity.js#L15
Since: 3.0.0