previous |  up  | next
 

Vector Based Collision   

Author:  TheTutor

Uses "vector math" to determine when a ball collides with a "wall" and at what angle the ball should reflect off of the "wall".

Functions Used:  GetClientRect(), Ellipse(), sqrtf()


purchase full version
Access EXE

 
 
 

 

 

 


 C
 C++
 Win32
 Direct3D
 OpenGL
 C#
 Java
 Free Tutorials