View Single Post
Old 06-04-07, 08:51 PM   #18
zylark
Loader
 
Join Date: Apr 2007
Location: Norway
Posts: 84
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by SteamWake
It was just a wish, not a demand.

I can imagine the coding for off axis thrust would have been a nightmare.
Not really. Coding, like any art, is all about cutting corners to achieve some stated goal. Ofcourse you could do it the difficult way and actually simulate the effect using physics and whatnot. But it would be way easier (and no effectual difference really) to just predefine some model based upon relative thrust for the left and right engines that equals a given rudder settings.

Like this (assuming left rudder is a negative value and right rudder is a positive value):

While lenginerpm != renginerpm {

If lenginerpm < renginerpm {
rudderdegreetemp == (renginerpm - lenginerpm) / somedegreevalue
rudderdegree == rudderdegreetemp - (rudderdegreetemp * 2)
}
else {
rudderdegree == (lenginerpm - renginerpm) / somedegreevalue
}
}

Took me two minutes
zylark is offline   Reply With Quote