   pendulum motion
  How would you do collision response with a circle and an arc (I want the ball to roll around in the arc). Right now I'm taking the vector from the circle to the arc's center, subtracting the radius of the arc, and then adding the remaining vector to the circles position. It works ok, but when I apply gravity, the ball slows down and stops at the bottom of the arc. Unless maybe I shouldn't make "gravity" act straight down but toward the bottom of the arc? It doesn't have to be scientifically correct, as long as the ball acts somewhat realistically.Thanks for any help[Edited by - nataku92 on December 13, 2005 12:08:07 AM]
  anyone? ._.   ;  It sounds like your collision response is enforcing a non-penetration constraint but otherwise isn't modeling the forces of the collision between the objects. If you dropped the circle onto a 45 degree incline, you'd expect the circle to bounce off the incline and gain velocity in the direction the incline is pointing. Look for information on modelling physical collisions.   ;  Ok, I've had a change of problems. Instead of using and arc and a circle, I've decided that it would be easier just to use a pendulum. I've found some equations, but I'm having a hard time implementing them in code. I also need to know how to apply a dynamic force to the pendulum. I'd be grateful if anyone would give me some quick pseudo-code.Tanks   ;  http://en.wikipedia.org/wiki/Pendulum   