This project has moved and is read-only. For the latest updates, please go here.

How to stop objects "bouncing"?

Topics: Developer Forum, User Forum
Jan 18, 2010 at 5:42 AM
I have a ball controlled by the player, and it is rolled along a surface. However, it bounces slightly, even over the most flat parts of the map. I don't understand why it is doing this. I've tried setting the restitution coefficients to 0 for both geometries, and it still "bounces" a little. Is there any way to overcome this? I already have the friction coefficient set quite high, so increasing it isn't really an option. Any help would be greatly appreciated.
Jan 18, 2010 at 3:31 PM

Farseer 2.x doesn't have real circles, if you use a "circle" geometry it's actually a polygon that approximates a circle, the bouncing you see happens when one of the corners hits something. You could try increasing the number of edges to make it a smoother circle, or adjust the grid size (those two have worked for me in the past), but it's hard to get a good circle simulation. You could also wait for FP 3.0 since it's gonna have real circles and avoid the whole problem.