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

Method setAcceleration

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

* Sets the body's horizontal and vertical acceleration. If the vertical acceleration value is not provided, the vertical acceleration is set to the same value as the horizontal acceleration. * @param x The horizontal acceleration, in pixels per second squared.

(x: number, y?: number)

Source from the content-addressed store, hash-verified

110906 * @returns This Game Object.
110907 */
110908 setAcceleration(x: number, y?: number): this;
110909 /**
110910 * Sets the body's horizontal acceleration.
110911 * @param value The horizontal acceleration, in pixels per second squared.

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected