AtomMorphs take their topLeft as their position. This causes them to bounce past the bottom and right edges of their container by "atom width" and "atom height" respectively.
Then, BouncingAtomsMorph comes to the rescue in #step with: r _ bounds origin corner: (bounds corner - (8@8)).
Why was this done this way? Was it to make the AtomMorph's method look like more purely like a mathematical formula for a particle? If so, this makes sense, but a comment documenting the intent would be really nice.
Sean
-- View this message in context: http://forum.world.st/Why-does-BouncingAtomsMorph-fudge-bounds-tp4337653p433... Sent from the Squeak - Dev mailing list archive at Nabble.com.