|
|
In article <3c0e39ec@news.povray.org>, run### [at] mobilixnetdk
says...
> Of course I haven't tried it, but I think most (maybe all) will impact a
> planet but some might leave the system (that happened in some other tests).
Then you have a problem. They should't be able to do this (unless they
have a high initial speed) because of energy-conservation.
I tried a similar thing (in C, but 2D), and had the problem that some
partices that passed the gravity-source in small dinstance tend to gain a
lot of speed, because the gravity force varies very much in a very small
area, so the simulation gets unaccurate.
Or maybe some kind of "adaptive iteration step length" could help here.
Lutz-Peter
Post a reply to this message
|
|