phaser-ce-examples icon indicating copy to clipboard operation
phaser-ce-examples copied to clipboard

Asteroids ship movement is strange

Open fquirin opened this issue 6 years ago • 2 comments

I was playing around with the Asteroids example a lot and really enjoyed it even though there is nothing to do =) There is one thing I noticed though. If you point your ship in one direction that is slightly of the horizontal or vertical and accelerate it will not fly in a straight line. Is that a bug or a feature? :-)

fquirin avatar Jan 21 '18 23:01 fquirin

Some updates on this:

  • it does only happen when you are using the ARCADE physics
  • it might be related to the damping/drag on the axis with lower velocity -> I think its most pronounced when you have a large x-axis and a low y-axis velocity (or vice versa)

fquirin avatar Feb 01 '18 15:02 fquirin

The drag is applied separately on the X/Y axes.

samme avatar May 19 '18 01:05 samme