Sets the bounce values of this body.
Bounce is the amount of restitution, or elasticity, the body has when it collides with another object. A value of 1 means that it will retain its full velocity after the rebound. A value of 0 means it will not rebound at all.
name | type | arguments | Default | description |
---|---|---|---|---|
x | number |
The amount of horizontal bounce to apply on collision. A float, typically between 0 and 1. |
||
y | number | <optional> | x |
The amount of vertical bounce to apply on collision. A float, typically between 0 and 1. |
This Game Object.