Jump to content
  • Advertisement
Sign in to follow this  
Panicbox

A little advice on Collision and Contact

This topic is 2534 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi.

I've been trying my hand at getting some form of a physics engine to work, and therefor I've been reading a lot of papers and stuff on the topic. One in particular that really interest's me is Guendelman's Non-convex stacking paper: linked here.

However I'm slightly confused, I think, about the differences between collision and contact.

As far as I understand it, both are similar: a collision is found and an impulse applied to resolve it. The main difference between the two is that the coefficient of restitution for collision is high, whereas it is zero for contact.

Guendelman's method is roughly as follows:

Check/Resolve Collision
Integrate velocity
Check/Resolve Contact
Integrate Position

Guendelman states that: "The key to the algorithm is that contact modeling occurs directly after the velocity is updated with gravity. If instead either the collision step or a position update were to follow the velocity update, objects at rest will either incorrectly elastically bounce or move through the floor, respectively."

This is the part that I don't understand. I don't see how the order prevents these issues.

So, TL:DR:
- What are the differences between collision and contact and...
- Why does integrating the velocity before the contact stage help avoid erroneous bouncing/jittering?

All help is much appreciated, thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
The Guendelman paper is good, but now out of date.

Google for Box2d, and Erin Catto's presentations on sequential impulses. They're the new, cool way to do things, and do not distinguish between collision and resting contact :)

Cheers, Paul.

Share this post


Link to post
Share on other sites
Thanks wildbunny.

As it happens, since my last post I've read your tutorials on Speculative contacts and Collision detection and they've both been really helpful.

I have no working demo yet, but I'll look up Catto's presentations like you suggested.

Thanks for your advice.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!