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: 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.

Examples:
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
Examples:
Since: 3.0.0
Focus
Focus