Jump to content

Velocity X and Y decreasing in the same time ?


Recommended Posts

Hi, I've been trying to throw a ball in a fixed direction in phaser.

GameObject.setVelocity(velocityX, velocityY);

But, for instance, if Y is bigger than X the ball is not going to launch straight, and it'll finish its path vertically. (see gif for example).

Is there a trick to do I'm missing ? Thanks.

captured (1).gif

Link to comment
Share on other sites

  • 2 weeks later...

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...