Tuesday, December 27, 2011

Trouble with collisions

During the past week Adam worked on implementing a two-dimensional ping-pong game with gravity in FAL, which led him to encounter two problems:
  1. Calculating the speed of the user-controlled paddle.
  2. Simulating the collision between the user-controlled paddle and the ball in a way that prevents the ball from "falling through" the paddle, triggering additional unwanted collision events.
Adam believes he is close to solving 1 but suspects that a solution to 2 will require a more sophisticated model of the collision event. To approach 2 during the upcoming week, he is planning to read "Realtime Rigid Body Simulation Using Impulses" by Scott Lembcke.