collinsinclair / N-Body-Improved

Command line UI lets a user generate a variety of customizable N-body simulations in three dimensions.
0 stars 0 forks source link

Fix x- and y- limits of 3D plot #5

Closed collinsinclair closed 3 years ago

collinsinclair commented 3 years ago

Need to figure out the best way to determine the limits. Works great if no objects get ejected, but if they do then it gets all weird!

collinsinclair commented 3 years ago

Also we want to keep (0,0,0) at the center

collinsinclair commented 3 years ago

Now using 10th and 90th percentiles for bounds on animations with more than 3 bodies, or min and max for animations with 3 or less. 2d looks a little odd because particles are cut off

collinsinclair commented 3 years ago

Now the issue is that the the barycenters of systems whose barycenters obviously shouldn't move do move - I'd like to figure out how to stabilize this. I think it's just a matter of setting the same bound on either side so 0,0,0 is always centered, as mentioned above