Bumpy ride on edge body with radius

General discussion about the R.U.B.E editor
Post Reply
fredells
Posts: 10
Joined: Sat Jan 16, 2016 10:16 pm

Bumpy ride on edge body with radius

Post 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
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Bumpy ride on edge body with radius

Post 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
Post Reply