Namespace: Sleep

Phaser.Physics.Matter.Components. Sleep

[description]

Since: 3.0.0
Source: src/physics/matter-js/components/Sleep.js (Line 10)

Methods


setSleepEndEvent(value)

[description]

Parameters:
Name Type Description
value boolean

[description]

Since: 3.0.0
Source: src/physics/matter-js/components/Sleep.js (Line 85)
Returns:

This Game Object.

Type
Phaser.GameObjects.GameObject

setSleepEvents(start, end)

[description]

Parameters:
Name Type Description
start boolean

[description]

end boolean

[description]

Since: 3.0.0
Source: src/physics/matter-js/components/Sleep.js (Line 37)
Returns:

This Game Object.

Type
Phaser.GameObjects.GameObject

setSleepStartEvent(value)

[description]

Parameters:
Name Type Description
value boolean

[description]

Since: 3.0.0
Source: src/physics/matter-js/components/Sleep.js (Line 56)
Returns:

This Game Object.

Type
Phaser.GameObjects.GameObject

setSleepThreshold( [value])

[description]

Parameters:
Name Type Argument Default Description
value number <optional>
60

[description]

Since: 3.0.0
Source: src/physics/matter-js/components/Sleep.js (Line 18)
Returns:

This Game Object.

Type
Phaser.GameObjects.GameObject