Calculate initial velocity to move a set distance with inertia
Posted
by Bodyscanner
on Stack Overflow
See other posts from Stack Overflow
or by Bodyscanner
Published on 2010-03-21T12:36:03Z
Indexed on
2010/03/21
12:41 UTC
Read the original article
Hit count: 552
Hello,
I want to move something a set distance. However in my system there is inertia/drag/negative accelaration. I'm using a formula like this for it:
velocity = oldVelocity + ((velocity - oldVelocity * inertia)
where inertia is a fractional value like 0.25
So to move the item a set distance, I need to calculate what the initial velocity should be (I know what all the other values are). I've been looking at Equations of motion (http://en.wikipedia.org/wiki/Equations_of_motion) but can't work out what the correct one for my problem is...
Any ideas? Thanks!
© Stack Overflow or respective owner