Physics.P2.Body#moveDown()

moveDown(speed)

If this Body is dynamic then this will move it down by setting its y velocity to the given speed.
The speed is represented in pixels per second. So a value of 100 would move 100 pixels in 1 second (1000ms).

Parameters
Name Type Description
speed number

The speed at which it should move down, in pixels per second.

Source code: physics/p2/Body.js (Line 815)
doc_phaser
2017-02-14 11:02:09
Comments
Leave a Comment

Please login to continue.