Rebounding of any angle

BlitzMax Forums/BlitzMax Programming/Rebounding of any angle

There is a Reflected method that returns the reflected vector in my TVec2
object where you:

-Create a incident vector - like your ball
-Create a wall vector (normalized or not - it doesn't matter)
-Then you call:

Reflected_Vector = Incident_Vector.Reflected(Wall_Normal)

The Vector object is here:

http://blitzbasic.com/codearcs/codearcs.php?code=2320#comments