Question by
eyeofhorus · Jul 07, 2017 at 08:06 AM ·
rigidbodyphysics2dmath
Rigidbody - Force needed to cover distance within time, with drag
Hello everyone, I'm trying to move my character by Rigidbody.AddForce(), and trying to determine the force needed to move the character so it can cover a certain distance over a time. E.g. 0.6seconds for each unit. So:
s = 1, t = 0.6 u = 0
Rigidbody has mass of 1 and linear drag 30, gravity scale to 0.
mass = 1 drag = 30
In this example, I believe the move velocity (a) will be : a = 2(s - u * t) / t^2 a = 2(1) /0.6t^2 a = 5.555
Next step will be determine the force needed, how can I take the drag into account to that I can obtain the correct force to move my character 1 unit in 0.6 seconds?
Comment