Closed arouinfar closed 3 years ago
Now bumping balls away from everything when constantSize is toggled. Does this look good?
Looks good in master @jonathanolson
Actually, something's not quite right @jonathanolson.
We're now explicitly saving the positions in that case with the above commit. Can you verify that this fixes it? It worked for me.
Looks good @jonathanolson!
Basically this is #167, but instead of changing the mass near a border, toggle Constant Size.
An easy way to demonstrate the bug:
Explore 1D, 1 Ball, Mass 3.00 kg, Constant Size on
Press play, and when the ball is near the reflecting border, uncheck Constant Size
Part of the ball is now out-of-bounds, and will escape the Reflecting Border