Reflection Angle
BlitzMax Forums/BlitzMax Beginners Area/Reflection Angle
| ||
Can someone help me please. I have a screen fill of circles, and I have a ship that flys around. When I hit one I want it to bounce off at the proper angle. Currently I calculate the impact as Angle=Atan2(Y-Y1,X-X2) No matter how I collide with the Circle the impact reflects my angle from the origin of the circle outward. Hope that makes sense. I am thinking I need to calculate the normal impact angle and reflect off of that. There is smoke coming out of my brain, and I can't think any more. Help would be appreciated. Eric |