I'm using custom movement rather than the bullet and its in-built bounce functionality because I only want my ball to move at 45 degree angles.
As you'll see in the capx file, I've managed to get the ball bouncing off the four sides of the box by testing for the ball's position relative to the box and flipping the horizontal or vertical movement accordingly. The problem comes when the ball collides with the corner of the box. In such a case I want both the horizontal and vertical movements to flip, but I can't seem to test for this accurately and without screwing up the rest of the ball's collision detection.
Help much appreciated.