wheels rotating while vehicle is not moving ?

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

wheels rotating while vehicle is not moving ?

Post by gjaegy »

Hi,

I am experiencing an issue with the raycast vehicle, which happens when I link several vehicles together.

In the video (http://g.jaegy.free.fr/_divers/wheels.divx), I have linked 3 vehicles together, this seems to work.

However, the trailer wheels are constantly rotating, while the vehicle is not moving...

Any idea how I could fix this issue ?

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

Re: wheels rotating while vehicle is not moving ?

Post by gjaegy »

nobody encounters the same issue ?
razer
Posts: 82
Joined: Sun Apr 04, 2010 10:08 pm

Re: wheels rotating while vehicle is not moving ?

Post by razer »

Do you have

Code: Select all

dynamicWorld->addVehicle
call ?

Do you apply force to those wheels? It is not natural if you apply force to them
gjaegy
Posts: 178
Joined: Fri Apr 18, 2008 2:20 pm

Re: wheels rotating while vehicle is not moving ?

Post by gjaegy »

yes, I have an addVehicle() call (I use the btRaycaseVehicle).

And I don't add any force myself to the trailer wheels, actually I don't apply any force to the trailer vehicle myself at all...
dakffyd
Posts: 13
Joined: Wed Jan 20, 2010 1:35 am

Re: wheels rotating while vehicle is not moving ?

Post by dakffyd »

check that your axis are right (for wheel direction, axle, etc)?

i also had a similar error for a while when i was accidentally adding a vehicle twice, so all wheel rotations were applied twice.