Colliding objects stick together

Topics: Developer Forum
Jul 11, 2007 at 8:42 PM
I have a very simple demo based on your FarseerXNAGame and FarseerXNAPhysics that contains one CircleEntity and one PolygonEntity. I have adjusted the edgeCount of the circle to values between 40 and 80. I have also adjusted the vertices for the polygon from around 40 up to 80. I'm not sure that this matters, but the polygon has a series of jagged edges.

Whenever the circle collides with the polygon the two objects stick together rather than bounce apart. I've modeled my demo on your FarseerDemo8 project so I can grab the objects with the mouse. If I spin the two objects with a rotational force they will fly apart, but ultimately reconnect as soon as they collide with each other again.

Anyone have any thoughts on what I might be doing wrong?

BTW crashlander, thanks for your work on this project, it is really cool!

Jul 11, 2007 at 8:48 PM
I think you need to increase the precision of the collision grid. And/or decrease the size of your time step to get more precision. If the polygon has a lot of sharp edges, then most likely it's the collision grid that is your problem.