|
|
> 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
|
|