0

I have a Particle p.
A particle consists of a start position p0,an age t, a velocity v and a friction f

How can I find the position pt at an arbitrary t?

I currently have the formula

pt = p0 + (v*t), which works fine.

But I don't know how to corporate f into it.

f is a multiplier, that should reduce velocity per timestep: v' = v*f

I tried p0 + (v*t * (f/t)) but at time 0 it's a division by 0, and when t is high, pt converges to p0

Raildex
  • 751
  • 4
  • 26

1 Answers1

1

Maybe try this:

pt = p0 + v*t - 0.5ft^2

It's the physical equation for motion with constant deceleration, just make sure to stop it and save the position when v reaches 0:

Vfinal = V - f*t

So for V final = 0 you wanna stop it at t = v/f

YepNope
  • 26
  • 1