Improvements to bounceAgainstWorldBoundaries