Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jun 23rd, 2005, 2:13 AM   #1
Nitrotrigger
Newbie
 
Join Date: Jun 2005
Posts: 1
Rep Power: 0 Nitrotrigger is on a distinguished road
Making my own sim

So I'm doing a tractor pulling game (pulling a sled trailer with tractor as long as you can in 100 meters long track) in 2D and I'm using Visual Basic 6 and DirectX 8. I have nearly done the physics engine but it needs still modifying.
First problem which I have is that in my code I calculate the amount of slip like this:

Slip Ratio = (Wheel Angular Velocity * Wheel Radius - Tractor Longtitudinal Velocity) / Tractor Longtitudinal Velocity

Well, how could I calculate the amount of slip if the tractors speed is zero? I think it is impossible to divide by zero?
Or if I don't have to then how could I calculate the coefficient of friction if I don't know the slip ratio?

Then a little smaller problem: How could I make a rev limiter?
It couldn't be done like limitting only the revs becouse the wheel angular acceleration is still positive.


I really appreciate your effort.
Nitrotrigger is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:58 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC