MCPcopy
hub / github.com/phaserjs/phaser / setBounceX

Method setBounceX

types/phaser.d.ts:110976–110976  ·  view source on GitHub ↗

* Sets the horizontal bounce value for this body. This is the amount of restitution applied * on the x-axis when the body collides with another object. A value of 1 retains full horizontal * velocity after the rebound. A value of 0 means no horizontal bounce

(value: number)

Source from the content-addressed store, hash-verified

110974 * @returns This Game Object.
110975 */
110976 setBounceX(value: number): this;
110977 /**
110978 * Sets the vertical bounce value for this body. This is the amount of restitution applied
110979 * on the y-axis when the body collides with another object. A value of 1 retains full vertical

Callers 2

Body.test.jsFile · 0.80
Bounce.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected