Hacker News new | past | comments | ask | show | jobs | submit login

"drag" seems like a bit of a misnomer for what that parameter is doing - the effect on x and y velocity is calculated separately, so you're always going to get the little "twist" at the end when velocity on one axis drops below the drag value.

See also the source here:

https://github.com/photonstorm/phaser/blob/master/src/physic...

and the doc comment for computeVelocity a couple lines down.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: