2D Platformer Problem - Player movement

Feb 7, 2012 at 7:47 PM

I've tried numerous methods of moving my player by either altering the position or applying a linear force but as my map is tile based it catches on the edges of each square(even though on the Farseer debugger there is no visible change). This makes the screen jerks around alot (as my camera follows the player). It's not a major problem but it just makes it look pretty sloppy. Can anyone think of anyway I can make the movement smoother or point me to some one else thats had this issue?

http://www.sgtconker.com/2010/09/article-xna-farseer-platform-physics-tutorial/

I found this article which seems like it could work but do you think the circle at the bottom will still catch on the corners even when using a wheel type mechanism?

Feb 8, 2012 at 3:38 PM

Check this thread on the Box2D forums for reference, explanation on why this happens and possible solutions. I've had the same problem but occuring rarely and haven't gotten to solving it. AFAIR the latest box2d/current farseer svn has the loop shape with ghost vertices that should resolve the issue, although making the point of contact body circular seems to be the general solution.

http://box2d.org/forum/viewtopic.php?f=3&t=3048

Feb 9, 2012 at 4:59 PM

My characters shape is a rounded rectangle at the minute. Might turn it into an elipse see if that makes it better still but if not i'll have a turning wheel instead. Thanks for the link!