Problem: Terrain collisions and Vehicle.

Anton Petrov
Posts: 8
Joined: Thu May 03, 2007 10:07 am

Problem: Terrain collisions and Vehicle.

Post by Anton Petrov »

Hello.

I'm writing a playable demo for an arcade offroad racing game. I'm trying to use the Bullet Library (Big Thanks to all its creators!) for the car phsics.

I used standard vehicle demo to setup my one game.

When my car falls down from a hill, one or two of its wheels sinks into the ground. It is a catastrophe, bacause it ruins all the gameplay.

Can I somehow avoid this ugly bug???

And is there any solution to avoid small jittering of the wheels when they are touching the ground? Though it is not a big problem, because I'm going to separate visible wheel from its physical representation.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Post by Erwin Coumans »

Changing the position of the wheel attachpoint can help. Try to move them deeper inside the chassis rigidbody/collision shape.
Anton Petrov
Posts: 8
Joined: Thu May 03, 2007 10:07 am

Post by Anton Petrov »

Thank you, Erwin. It works!

p.s. I have noticed a little inexactitude, a wheel with applied engine force does not rotate in the air, i.e. it rotates only if it has accumulated angular velocity while moving along the ground. I will take care of this and let you know :)