vehicle with 6 or 8 wheels

gjaegy
Posts: 178
Joined: Fri Apr 18, 2008 2:20 pm

vehicle with 6 or 8 wheels

Post by gjaegy »

Hi,

has anyobdy tried to successfully create a btRaycastVehicle with more than 4 wheels ? for instance, a bus with 6 set of wheels ?

Would Bullet allow that in theory ?

Also, I wonder how could I create a vehicle with a trailer. Anyone has an idea ?

Thanks,

Gregory
kester
Posts: 27
Joined: Mon Dec 01, 2008 5:08 am

Re: vehicle with 6 or 8 wheels

Post by kester »

We have vehicles with 6 wheels (and 1 & 2 wheel vehicles) and it works fine.

You could create a truck & trailer by creating two vehicles, and joining them with a constraint.
gjaegy
Posts: 178
Joined: Fri Apr 18, 2008 2:20 pm

Re: vehicle with 6 or 8 wheels

Post by gjaegy »

I have managed to create vehicles with more than 4 wheels, and it works well!

Concerning trailers, I have implemented a manual trailer trajectory computation system. I haven't though that it would have been possible to link two vehicles together, have you tried this already, or is this a theoretical suggestion ?

Also, what would be the best method to create this trailer : should I create two btRaycastVehicle (one for the truck and one for the trailer), and link both chassis rigid bodies using a hinge constraint ? Or should I rather create one single btRaycastVehicle and link the trailer rigid body to the chassis rigid body ?

In any case, thanks a lot for your answer !
ola
Posts: 169
Joined: Sun Jan 14, 2007 7:56 pm
Location: Norway

Re: vehicle with 6 or 8 wheels

Post by ola »

A while back I connected two raycast vehicles with a point constraint and that worked pretty well.