Phaser API Documentation

  Version: 
setBounce(x, y)

Description:

Sets the Body's bounce.

Parameters:

name type description
x number

The horizontal bounce, relative to 1.

y number

The vertical bounce, relative to 1.

Returns:
Description:

This Body object.

Since: 3.0.0