Vehicle friction

Gabriel555
Posts: 3
Joined: Thu Jun 14, 2012 7:16 am

Vehicle friction

Post by Gabriel555 »

Hello.

I'm using a btRaycastVehicle to simulate a car. I want to stop the car from sliding down a hill when it's not moving in that direction. I tried changing all the "friction" variables I could find, but that made a difference only for 0 friction and I need high values.

Thanks.
Gabriel555
Posts: 3
Joined: Thu Jun 14, 2012 7:16 am

Re: Vehicle friction

Post by Gabriel555 »

Changing defaultRollingFrictionImpulse(from 0 to a strictly positive value) seems to do the trick(at least part of it), but the car starts moving forward on its own. How do I compute the exact value needed for the car to stand still?
dumbo2007
Posts: 66
Joined: Sun Jan 30, 2011 8:46 pm

Re: Vehicle friction

Post by dumbo2007 »

Cant you engage the brake or something. Set braking force to a high value ?
Gabriel555
Posts: 3
Joined: Thu Jun 14, 2012 7:16 am

Re: Vehicle friction

Post by Gabriel555 »

Forgot that brake is not just a force applied in the opposite direction. This might work, thanks!