Phaser API Documentation

  Version: 
setStatic(value)

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.

Examples:
Since: 3.0.0