POV-Ray : Newsgroups : povray.binaries.animations : Solar (Particle) System WIP (DivX) : Re: Solar (Particle) System WIP (DivX) Server Time
2 Nov 2024 09:21:05 EDT (-0400)
  Re: Solar (Particle) System WIP (DivX)  
From: Dave Brickell
Date: 16 Mar 2002 07:59:46
Message: <3c9341c2$1@news.povray.org>
> Ah well, it looks really interesting. I think you should
> dampen the speed the particles pick up when colliding
> a bit. In the end, the green "earth" sphere just paces out
> of view, and I'd think that speed+mass calculations
> would fit here. Gimme a sec...
>
> Here's a formular for that:
>
> v=(m1*v1+m2*v3) / (m1+m2)

Yeah I worked that out last night  #declare xvec[particle] =
((xvec[particle]*mass[particle])+(xvec[check_particle]*mass[check_particle])
)/(mass[particle]+mass[check_particle]);

There was a few other things wrong so I went for a complete rewrite of the
main code and things are working a lot better now. Added inertia in there
just to polish things off :)

> Ask if something is unclear, and keep up the good work.

Thank You

Dave


Post a reply to this message

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