Fixed environmentForce and obstacleForce to be applied after rescale to maxAcceleration.