Vehicle model using wheel convex casting instead of regular

Please don't post Bullet support questions here, use the above forums instead.
Verbo
Posts: 39
Joined: Fri May 08, 2009 9:27 pm

Vehicle model using wheel convex casting instead of regular

Post by Verbo »

Hi,

I noticed that regular vehicle raycasting sometime results in sudden jumping wheels when rolling over small steps that have height similar to the wheel diameter. I wondered if somebody in the forum has ever implemented a more precise solution like using a convex shape casting on each wheel?

I'm still new to this subject, so if somebody could redirect me to some algorithms, open source samples, good references on the subject or even share some of his idea on the matter, I would be very thankful :)

Thanks.

Verbo
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Vehicle model using wheel convex casting instead of regular

Post by Erwin Coumans »

We have used convex cast instead of raycast for a few commercial games. We used special convex shapes, a kind blend between a sphere and a cylinder, for the wheels.

You might need some additional logic, to prevent collisions with street curbs.
Thanks,
Erwin
Verbo
Posts: 39
Joined: Fri May 08, 2009 9:27 pm

Re: Vehicle model using wheel convex casting instead of regular

Post by Verbo »

Hi,

Ok, so I guess it`s a bit similar to a torus right?

Howeverm I have a hard time finding proper documentation on the subject. Can you refer me some? Do we know of any open source code that could be downloadable to have a more visual understanding of the algorithm behind? :)

Thx.

Verbo