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

The character jumps up when moves by the ground

Topics: Developer Forum, User Forum
Sep 5, 2009 at 10:20 AM


I develop game, using farseer. The engine super! But there is one problem.

The character jumps up when moves by the ground. Even if it moves on an equal surface. Look at an example here -

Jump off downwards on a rectangular surface. Move to the right or to the left, the character starts to jump up.

For movement I set manually value:

playerBody. AngularVelocity = angular;


Installation RestitutionCoefficient = 0f; does not help.


How to solve this problem?

If the source code helps, I can publish.


PS: sorry for English

Sep 5, 2009 at 11:06 AM

From your post I think you are talking about the fact that circles jitter up and down when they move over a flat surface. This cannot fully be eliminated from farseer at the moment. Things you can do to reduce it are increase the iterations in the physics engine and you could also try making circles with a larger edge count. Other than that you could try some custem logic to detect it and then reduce it.

Hope this helps in some way.

Sep 6, 2009 at 6:24 PM

A good solution would be to create a larger geom directly ontop of your main geom that only detects collision and not get effected by it.. This allows you to have some leeway for those hard to overcome jitters.. I hope this makes sense..