1nspect0r Posted July 20, 2020 Share Posted July 20, 2020 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. Link to comment Share on other sites More sharing options...
1nspect0r Posted August 1, 2020 Author Share Posted August 1, 2020 bump. Spent hours trying to solve that. Can't find a solution. Link to comment Share on other sites More sharing options...
1nspect0r Posted August 2, 2020 Author Share Posted August 2, 2020 Finally found it. It's on the 'drag' setting of your sprite, you need to set "damping" to true and lower the velocity you'r applying. Explained here. Link to comment Share on other sites More sharing options...
Recommended Posts