samolds / principia

An educational physics playground emphasizing visualizations and interactability.
https://theprincipiaxyz.appspot.com
MIT License
1 stars 0 forks source link

Near-Zero Masses and Springs #190

Closed MatthewTurnerCS closed 8 years ago

MatthewTurnerCS commented 8 years ago

Springs no longer accelerate points with zero mass to avoid a divide-by-zero exception (thanks /u/5secondstozerotime for pointing this out). Still on the docket: Setting a mass to a near-zero value still causes near infinite acceleration, which either crashes the browser or borks the simulation. Should add a reasonable lower bound for such masses.