create rigid body version of the softbody-bunny-vehicle

GavinL
Posts: 5
Joined: Fri Oct 14, 2011 11:23 pm

create rigid body version of the softbody-bunny-vehicle

Post by GavinL »

Hi there,

I'm new to bullet physics, I've mostly been experimenting with the samples that came with the library. I've mostly been playing around with the raycast vehicle. It looks pretty neat, but it's giving me some problems with collisions with the wheels and the ground when the vehicle isn't right side up. So I thought I'd try to make my own vehicle, but I'm having trouble trying to figure out how to use these joints/constraints. In the softbody sample, there's a vehicle created using the bunny and 4 toruses. I was wondering if it is possible to re create that but using rigid bodies instead (rectangular prism for body and cylinders for wheels). I'm trying to experiment with the different constraints, but I'm having a hard time trying to understand how they work and they don't seem to be doing what it to do.

Could anyone help me out with this please?
Thanks

Gavin
Flix
Posts: 456
Joined: Tue Dec 25, 2007 1:06 pm

Re: create rigid body version of the softbody-bunny-vehicle

Post by Flix »

You mean vehicles with rigid bodies as wheels.
There's no "official demo", but a few (old) links:
http://bulletphysics.org/Bullet/phpBB3/ ... lit=spring.
and there's also a better implementation of the wheel suspensions in a link inside this (old) thread:http://bulletphysics.org/Bullet/phpBB3/ ... lit=spring.
Hope it helps :)
GavinL
Posts: 5
Joined: Fri Oct 14, 2011 11:23 pm

Re: create rigid body version of the softbody-bunny-vehicle

Post by GavinL »

Thanks Flix! That's exactly what I needed!