How do you change the speed of an object in a phaser without changing its direction? For example, I have a ball that collides with a moving platform. I want the ball to change direction, but not get extra speed from a collision with the moving side of the platform. So far, I have had to take the sign of the objectโs speeds and then apply a constant speed of value to it in a collision, but this seems to be wrong for the library as reliable as in Phaser.
How do you change speed and direction independently out of speed?
source
share