Namespace: Friction

Phaser.Physics.Impact.Components. Friction

The Impact Friction component. Should be applied as a mixin.

Since: 3.0.0
Source: src/physics/impact/components/Friction.js (Line 7)

Methods


setFriction(x, y)

[description]

Parameters:
Name Type Description
x number

[description]

y number

[description]

Since: 3.0.0
Source: src/physics/impact/components/Friction.js (Line 50)
Returns:

This Game Object.

Type
Phaser.GameObjects.GameObject

setFrictionX(x)

[description]

Parameters:
Name Type Description
x number

[description]

Since: 3.0.0
Source: src/physics/impact/components/Friction.js (Line 16)
Returns:

This Game Object.

Type
Phaser.GameObjects.GameObject

setFrictionY(y)

[description]

Parameters:
Name Type Description
y number

[description]

Since: 3.0.0
Source: src/physics/impact/components/Friction.js (Line 33)
Returns:

This Game Object.

Type
Phaser.GameObjects.GameObject