I'm trying to write a simple physics engine (a bit different than what is already out there) and I've got the following problem;
(For simplicity let's imagine this problem in one dimension;)
I have an object with initial position of x0, initial velocity of v0 and constant acceleration of "a". At some point in time the object reaches position x1. Is there a formula which can help me calculate the time it took for the object to travel from x0 to x1? (t0=0)
Here is where I've got;
x1= 0.5*a*t^2 + v0*t + x0
so
x1-x0=(0.5*a*(t^2))+(v0*t)
But I have no idea how to break it down to something like (t=...)
I appreciate any help.
P.S. I apologize if I haven't tagged this question properly. I don't know the proper terms this question should be files under.