Platform Physics

Good day gurus,

I have encountered couple of issues when trying to create a 2d platform game.

What I simply do is to keep trigger add force 2d whenever move button is pressed

  • The character accelerate slow when start move
  • It then stop slow when I release the button (so is like walking on ice if u play platform game before should know).
  • It keep accelerate whenever button is pressed, how can I make it move on constant speed?

Basically I just need the character to respond fast when move button pressed, then accelerate and maintain a constant speed, then stop fast when button released so it doesn’t like walking on ice

Thanks for the pointers :slight_smile:

Weilies

Your velocity will eventually be limited by your Rigidbody’s drag constant. Try scaling up the drag significantly and using a larger force to move.

You can also try using the VelocityChange ForceMode to see if that suits your needs.