Let's say my ship's velocity during deaccelerationdeceleration phase is given by: $$ v(t) = v_0 \exp(-k t) $$
v(t) = v0 * exp(-k * t)
where v0
$v_0$ is the speed at the time of starting deaccelerationdeceleration and k
$k$ is arbitrary constant.
My problem is: Is it possible to calculate such k
$k$ that the ship "stops" (let's say slows to a velocity vf
$v_f$) at the target position given: the initial velocity, $v_0$, and distance to the target, $d_0$?
- v0
- distance to the target d0 ?
Or alternatively: given k
$k$ calculating a distance at which deaccelerationdeceleration should start?
I'm making a space simulation game where the ship's warp drive needs to accelerate/deacceleratedecelerate exponentially. While accelerating to a maximum speed is easy the problem is with deacceleratingdecelerating so that the ship "stops" at the destination.
Thank you in advance for any help.