Rune wrote:
> Just to check if my general understanding of the terms is correct: I'd say
> that gravity increases the speed of an object linearly (assuming the object
> is falling downwards). Is that correct?
Say that
dP=V*dT (change in position is velocity times time increment)
dV=a*dT (change in velocity is acceleration times time increment.
So for every frame,
P[t+1]=P[t]+V*constant
V[t+1]=V[t]+a*constant
In my systems,
#declare velocity=velocity-0.1*y;
is how I usually do gravity.
As for air drag, I see a formulat at
http://web.syr.edu/~smdemar/rocketdrag.html which I would convert to
#declare velocity=velocity-dragconstant*velocity^2;
where dragconstant=0.005; //for starters
Post a reply to this message
|