Collision response with Verlet Integration

Member
Posts: 509
Joined: 2002.05
Post: #1
My new motorcycle game is based off this article http://www.gamasutra.com/resource_guide/...n_01.shtml about Verlet integration. I have the terrain collision detection working perfect, because it just attaches each of the 2 points on the motorcycle to itself. This works fine for the terrain, BUT for things like buildings it won't work, because when you hit the thing at full speed head on you come to an almost complete stop parallel to the wall.

How is this done correctly? When a ball hits a plane, what is the correct method to bounce the ball back off of the wall? I have tried getting it to work for about 2:30 hours and I came pretty close, but it never worked correctly all of the time.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
I just ended up faking the "past" position, reflecting it in the surface that the collision is in.

You can find the math for reflections in lines or planes on http://mathworld.wolfram.com/
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #3
Thanks, it appears my problem was using the another points position instead of the previous position of the current point!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  collision response JeroMiya 1 2,984 Sep 26, 2002 09:02 AM
Last Post: w_reade