Physics.Arcade.Body#deltaX()

deltaX() → {number}

Returns the delta x value. The difference between Body.x now and in the previous step.

Returns
number -

The delta value. Positive if the motion was to the right, negative if to the left.

Source code: physics/arcade/Body.js (Line 1269)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.