POV-Ray : Newsgroups : povray.binaries.animations : Particle Algorithms : Re: Particle Algorithms Server Time
20 Jul 2024 01:15:27 EDT (-0400)
  Re: Particle Algorithms  
From: Greg M  Johnson
Date: 7 Dec 2001 09:11:05
Message: <3C10CD9E.74800FA2@aol.com>
1. Particle has a velocity at a time t
2. Forces act on the particle.  Compute change in velocity as result of
forces.
3. You now have new trajectory and new distance to be travelled in next
frame.
4. Do a trace to obstacles.
5. If vlength(Position-NearestObstaclePoint) < velocity*time,  then change
postion by velocity * time.
6. If it's greater, do a vdot at incident point, substract
(Position-NearestObstaclePoint) from velocity*time, go to step 4  until no
obstacles within distance.


Post a reply to this message

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