I am writing an elastic ball simulation. I can’t get the collision working between the wall and a ball.
The rectangle holds it’s center position, radians of tilt, and width/height. To detect collisions I’m rotating the circle around the rectangle’s center and then using AABB. That part is working correctly. My problem is currently figuring out how to move the ball outside of the rectangle by the correct amount before adjusting it’s velocity. I’ve tried a multitude of things but haven’t gotten it working
user25297280 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.