Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Vehicle friction
PostPosted: Thu Jun 14, 2012 7:52 am 
Offline

Joined: Thu Jun 14, 2012 7:16 am
Posts: 3
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.


Top
 Profile  
 
 Post subject: Re: Vehicle friction
PostPosted: Thu Jun 14, 2012 1:18 pm 
Offline

Joined: Thu Jun 14, 2012 7:16 am
Posts: 3
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?


Top
 Profile  
 
 Post subject: Re: Vehicle friction
PostPosted: Sun Jun 17, 2012 8:51 pm 
Offline

Joined: Sun Jan 30, 2011 8:46 pm
Posts: 64
Cant you engage the brake or something. Set braking force to a high value ?


Top
 Profile  
 
 Post subject: Re: Vehicle friction
PostPosted: Mon Jun 18, 2012 8:21 am 
Offline

Joined: Thu Jun 14, 2012 7:16 am
Posts: 3
Forgot that brake is not just a force applied in the opposite direction. This might work, thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group