SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-04-07, 08:51 PM   #1
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
Reply

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


All times are GMT -5. The time now is 09:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.