Page 1 of 1

Bumpy ride on edge body with radius

Posted: Fri Nov 04, 2016 2:04 am
by fredells
Hi, I have a strange question.

I have created a simple game where you ride vehicles along terrain. I am creating the terrain from edge bodies with a radius. I noticed however that when I add a radius to my terrain my player (on a bicycle) bumps and jumps off of vertices. This does not happen when the radius is 0.

Any ideas why this is happening?

Thanks for you help,

Fred

Re: Bumpy ride on edge body with radius

Posted: Sat Nov 05, 2016 8:15 am
by iforce2d
Sounds like the wheel of the bicycle is colliding with the shape of one segment, and the shape of the next segment, and the circle that exists at the vertex, all at once. Basically it's this problem: http://www.iforce2d.net/b2dtut/ghost-vertices