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.
Vehicle friction
-
- Posts: 3
- Joined: Thu Jun 14, 2012 7:16 am
Re: Vehicle friction
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?
-
- Posts: 66
- Joined: Sun Jan 30, 2011 8:46 pm
Re: Vehicle friction
Cant you engage the brake or something. Set braking force to a high value ?
-
- Posts: 3
- Joined: Thu Jun 14, 2012 7:16 am
Re: Vehicle friction
Forgot that brake is not just a force applied in the opposite direction. This might work, thanks!