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

Method setVelocityY

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

* Sets the vertical component of the body's velocity. * * Positive values move the body down, while negative values move it up. * @param y The new vertical velocity, in pixels per second. * @returns This Game Object

(y: number)

Source from the content-addressed store, hash-verified

111453 * @returns This Game Object.
111454 */
111455 setVelocityY(y: number): this;
111456 /**
111457 * Sets the maximum velocity of the body.
111458 * @param x The new maximum horizontal velocity, in pixels per second.

Callers 3

Velocity.jsFile · 0.80
Body.test.jsFile · 0.80
Velocity.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected