AS3 Bounce

This is a quick code prototype I did to calculate the intersection point and bounce vector after a collision
I'm hoping to use this for some games
P.S: If the blue line disappears or doesn't follow the drag point that's the Mouse_Move fault
advertisement