Phaser API Documentation

  Version: 
Filter
Namespace: Static
Phaser.Physics.Matter.Components.Static

Methods

setStatic(value)
Focus
Focus

Description:

Changes the physics body to be either static true or dynamic false.

Parameters:

name type description
value boolean

true to set the body as being static, or false to make it dynamic.

Returns:
Description:

This Game Object.

Since: 3.0.0
Focus
Focus
isStatic()
Focus
Focus

Description:

Returns true if the body is static, otherwise false for a dynamic body.

Returns:
Description:

true if the body is static, otherwise false.

Type:
  • boolean
Since: 3.0.0
Focus
Focus