I'm trying to get my simulation to stop on a specific point. I have my starting position, an ending position, my current velocity and the time I'd like to take to get there. Since:

```
d = vt + (at^2)/2

```

I was figuring that

```
d = (end - start)
a = 2(d - vt) / t^2

```

but my end point is way off when I run it. I've tried using two simple updates, first:

```
v += a * dt
d += v * dt

```

and second:

```
d += v * dt + a * dt * dt / 2;
v += a * dt;

```

if that matters. Position in this case is 1d, so no need for crazy vector stuff. Any help would be greatly appreciated :) Thanks!

(Edit: formatting)
(Edit2: corrected update #2)
(Edit3: updates now show dt instead of t)