POV-Ray : Newsgroups : povray.advanced-users : Air resistance : Re: Air resistance Server Time
29 Jul 2024 20:27:12 EDT (-0400)
  Re: Air resistance  
From: Greg M  Johnson
Date: 15 Feb 2001 16:29:54
Message: <3A8C48E9.1434CBAD@my-dejanews.com>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.