Acceleration Based Player Movement

Posted by Mike Sawayda on Game Development See other posts from Game Development or by Mike Sawayda
Published on 2012-09-04T19:43:41Z Indexed on 2012/09/04 21:51 UTC
Read the original article Hit count: 221

Filed under:
|
|

Ok, so I am making a first person shooter game and I am currently working on movement that looks and feels good. I want to incorporate acceleration based movement for the player so that he has to accelerate to max speed and decelerate to minimum speed. Acceleration will happen when you have the key pressed and deceleration will happen when you let go of that key. The problem is that there are some instances where you switch from moving forward to moving backward where no deceleration is needed because you could potentially be moving at double speed in the reverse if you did. Does anyone have a good implementation of how to accomplish acceleration based movement that works well?

© Game Development or respective owner

Related posts about physics

Related posts about game-mechanics