Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Oct 02, 2012 2:30 pm 
Offline

Joined: Fri Apr 18, 2008 2:20 pm
Posts: 154
Hi,

I am encountering an issue, which is easily reproducible with the vehicle demo.
Simply apply brake to each of the 4 wheels (instead of applying them to the rear wheels only), so simply add these two lines in VehicleDemo.cpp, in clientMoveAndDisplay():

Code:
m_vehicle->setBrake(gBreakingForce,0);
m_vehicle->setBrake(gBreakingForce,1);


The effect can be magnified by increasing the "maxBreakingForce" constant value to 1000.0. Attached the modified "VehicleDemo.cpp" file.

Now simply press the up arrow key (accelerate) for a few second, then release the key, then press the down arrow key (brake) until the vehicle stops. You will see the vibration effect quite noticeably.

[*]first question: am I supposed to apply braking to two wheels only ?
[*]second question: I guess the issue comes from the calcRollingFriction() function, which returns a non-zero friction, which oscilates each frame. Any idea how I can fix this ?

Thanks,
Greg


Attachments:
VehicleDemo.cpp [17.79 KiB]
Downloaded 47 times
Top
 Profile  
 
PostPosted: Fri Oct 05, 2012 12:32 pm 
Offline

Joined: Fri Apr 18, 2008 2:20 pm
Posts: 154
nobody ?


Top
 Profile  
 
PostPosted: Sat Oct 13, 2012 4:12 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3744
Location: California, USA
I have a lot of other things to care about right now, but I'll deal with the issue.

Thanks for reporting it in the issue tracker!
Erwin


Top
 Profile  
 
PostPosted: Mon Oct 15, 2012 7:16 am 
Offline

Joined: Fri Apr 18, 2008 2:20 pm
Posts: 154
Thanks to you, Erwin :)


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 6 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