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
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