If I have a square box with bullet behavior that bounces off a solid object that is also square, the reflected angles eventually become inaccurate. Why is this?
How can I get accurate bouncing?
Develop games in your browser. Powerful, performant & highly capable.
You possibly can get better results by doing something like this if you only have vertical and horizontal walls:
Corners are a bit odd with the ball, but square against square should work well.
My case is a bit unusual, so I had to work out my own collision detection. I managed to get it bouncing accurately by calculating a projection vector for each axis, and flipping the motion with the shorter projection.