Phaser API Documentation

  Version: 
setBounce(x, [y])

Description:

Sets the Body's bounce.

Parameters:

name type arguments Default description
x number

The horizontal bounce, relative to 1.

y number <optional> x

The vertical bounce, relative to 1.

Returns:
Description:

This Body object.

Since: 3.0.0