Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
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
Old Jun 23rd, 2005, 2:23 AM   #2
TheFalseDragon
Programmer
 
TheFalseDragon's Avatar
 
Join Date: Jun 2005
Location: |\|[][]B |_4|\|D
Posts: 41
Rep Power: 0 TheFalseDragon is on a distinguished road
on the slip ratio you could have an if on the front so that it only works out that way if it doesn't equal 0, i don't know how to do that but that might work... erm as for the rev limiter i have no idea.
TheFalseDragon is offline   Reply With Quote
Old Jun 23rd, 2005, 2:44 AM   #3
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
yo

shouldn't slip decrease as speed?
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Jun 23rd, 2005, 8:51 AM   #4
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Yeah, isn't slip equivalent to inefficiency which would be 1 - (Useful Work/Total Work) which as it's a quotient is the same as 1 - (Useful Tractor Velocity/Total Wheel Velocity). Also, useful tractor velocity is the total speed in the positive direction minus the effects of towing, wind etc. Total wheel velocity at the edge is in fact (Pi * Radius * 2)/(Time for one complete rotation).
Rory is offline   Reply With Quote
Old Jul 13th, 2005, 7:51 PM   #5
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
good lord.

We're not talking about "the sims" video game.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Jul 14th, 2005, 3:20 AM   #6
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
lol, i think someone has found it via a search on google for the sims
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Jul 14th, 2005, 4:36 AM   #7
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
try thesims.ea.com
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Jul 14th, 2005, 5:15 AM   #8
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
What in the hell is wrong with people today? Don't they know how to use a damn search engine?
__________________

tempest is offline   Reply With Quote
Reply

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 1:48 PM.

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