kirbyquerby / phys2d

Automatically exported from code.google.com/p/phys2d
0 stars 0 forks source link

Collision detection failure with high velocities #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello and thanks for a great library!  I'm using Pys2D to teach
programming.  My student and I are creating a "Pong" game where a ball
bounces between two paddles and off walls.  The problem is that when the
ball reaches higher velocities it can sometimes pass right through the
Lines we have as walls.  Attached is code to reproduce the problem.

With velocity of Vector2f(2300,1000) the ball will always stay inside.  If
you increase it to Vector2f(2400,1000) the ball will escape.

Original issue reported on code.google.com by cru...@gmail.com on 7 Jan 2010 at 4:17

Attachments: