Phaser API Documentation

  Version: 
setBounceX(value)

Description:

Sets the horizontal bounce value for this body.

Parameters:

name type description
value number

The amount of horizontal bounce to apply on collision. A float, typically between 0 and 1.

Returns:
Description:

This Game Object.

Examples:
Since: 3.0.0