Scope: static
Source: src/physics/matter-js/components/Static.js#L9
Since: 3.0.0
Static functions
isStatic
<instance> isStatic()
Description:
Returns true
if the body is static, otherwise false
for a dynamic body.
Returns: boolean - true
if the body is static, otherwise false
.
Source: src/physics/matter-js/components/Static.js#L34
Since: 3.0.0
setStatic
<instance> setStatic(value)
Description:
Changes the physics body to be either static true
or dynamic false
.
Parameters:
name | type | optional | description |
---|---|---|---|
value | boolean | No |
|
Returns: Phaser.Physics.Matter.Components.Static - This Game Object instance.
Source: src/physics/matter-js/components/Static.js#L17
Since: 3.0.0