-
Collision detection & bouncing
Hi, I tried to learn how to detect collisions between the ball and the line. Somehow we made it work, but now I do not know how to bounce the ball from the line.
Collision detection - the ball ( "a"), line (from "b" to "c"). You can move every point.
Download the example
It is not a simple hitTest, but "twisted vectors". I learned that from these examples:
http://www.johanvanmol.org/content/view/45/37/1/2/
http://www.tonypa.pri.ee/vectors/tut06.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|