Aug 22, 2009 at 12:28 PM
Edited Aug 22, 2009 at 1:19 PM
One ball 30 pixels in diameter, 20 blocks all 30x30 pixels in size. The blocks are side by side, touching, forming a horizontal line like the bricks in Mario.
The ball is dropped onto the blocks, and steadily stables itself. Works great so far..
Applying an impulse to the ball to move left or right, results in somewhat smooth rolling across these blocks.. but about 1 in every 3-5 blocks results in the ball supposedly hitting a corner of one of the blocks.That makes the ball bounce for what (to the
user) seems like no reason at all.
My only real guess at the moment is that I need to use odd width/height sizes so the center location of the ball/blocks is a pixel in itself, so there aren't any rounding issues. That sound about right?
Thanks for any and all help,
Edit: My assumption was incorrect, so.. yeah.