We Will Tackle Game Design… With Science! (or Maths)

 

I have a bug in my input code where I can gain too much velocity on my rigidbodies in a frame. So the best thing is to provide an upper limit on the rigidbody’s velocity. But how to determine what that maximum should be without trial and error? Enter graphs:

2016-08-27 13_08_47-Untitled 1 - OpenOffice Calc

The orange line is the vertical velocity of the rigidbody during play, the blue is the horizontal. Looks like the limits should be 15 for vertical and 10 for horizontal. Thanks graphs!