Building a ramp

Hello everyone,

I have a workaround that builds a ramp for me from several boxes (polygons), I use a for and a function.
The workaround works good, everything is smooth, but my question is : is there a better way to do this ? I'd like to build just one shape as a ramp.

Anybody got any hints ?
well you cannot make a ramp using one single shape, seeing as polygons must be convex, and ramps are concave. A populour alternative is to use flash to set up multiple points using movieclips as referance and then use the points' x and y values to fill them in with polygons on box2d
Ok, so I built a ramp, but now I am facing a different problem.

Even though the shapes are really well placed, the wheels on my motorbike won't go perfectly when going from another box to another, they are pushed back for a very short amount of time (50-100 ms ?!) but enough to be noticed..

Does anybody know why this may happen ?
sadly, this is the exact problem i get. Interestingly (since i have a slow-mo in mine) when i decrease the step size, this doesnt happen nearly as much (1/10 as much?). So i guessed its a problem with where the wheel is place after the step command but increasing the iterations doesn't do anything, and logically it would only happen for about 10ms if this was the problem. So we'r going to need boris to explain this to us.
Seems like this topic is getting pretty much ignored 🙁
Either that or Boris didn't get the time to look into it/solve it out 😛 .

It would seem like a shame to go to an older version of b2d just to get this working right, especially since I started working with b2d when 2.1 b came out ?

Does anyone have any ideas/solutions ?
I do not know what the problem is. I am willing to accept there may be some problem with motorcycles in 2.1a. But I don't look into problems speculatively, there's too many false positives. If you can reproduce the problem in a test program using the latest version from SVN, I promise I will try fix it.
Ok Boris 🙂

Thanks for the reply. I will take a look into it when I get the time to get back to this, prolly sometime by the end of this week.
Hey Erin,

First of all, apologies for being away from this for a very long time. We all know how it is to be a dev 🙂 .
Anyway, I'm back ! and here we go.

So... I attached the problem.
The ramp is there, everything goes well, except for the moments when the wheels remain behind 😐 .

Any clues ?
Did you tried to set wheels as bullets
Yes, they are bullets.
I am using :

wheelBody1.setBullet(true);

Maybe there's a different way ?
Anyway, I'm really puzzled why this happents =/.

Original thread: https://box2d.org/forum/viewtopic.php?t=4830