Phaser.Physics.Matter.Components.Static

Scope: static

Source: src/physics/matter-js/components/Static.js#L9
Since: 3.0.0

Methods:

Public Members

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:

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

Returns: Phaser.Physics.Matter.Components.Static - This Game Object instance.

Source: src/physics/matter-js/components/Static.js#L17
Since: 3.0.0


Private Members

Updated on