stenobot / Marimo

A game called Marimo
0 stars 0 forks source link

RigidBodyBehavior: Remove reliance on *Force variables #81

Closed x00l closed 7 years ago

x00l commented 7 years ago

Rather than providing both a force and a maximum speed (which may never be reached, depending on the force), we should be able use only the maximum speed and calculate the force required to reach it.

Note: If we want the robot to appear to struggle going up hills like he does with insufficient, we can reduce his max speed if he's on an upward slope/increase on downward

Reference: http://answers.unity3d.com/questions/567460/calculating-the-force-required-rigidbody.html

x00l commented 7 years ago

Force actually proves useful to get the right amount of acceleration in cases like the robot, so cutting this item