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

Method setBounce

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

* 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

(x: number, y?: number)

Source from the content-addressed store, hash-verified

110966 * @returns This Game Object.
110967 */
110968 setBounce(x: number, y?: number): this;
110969 /**
110970 * Sets the horizontal bounce value for this body. This is the amount of restitution applied
110971 * on the x-axis when the body collides with another object. A value of 1 retains full horizontal

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected