SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 ATO Mods (https://www.subsim.com/radioroom/forumdisplay.php?f=234)
-   -   Torpedo Algorithm Script File? (https://www.subsim.com/radioroom/showthread.php?t=156125)

trojanfoe 09-12-09 02:52 PM

Torpedo Algorithm Script File?
 
Can anyone tell me if the algorithms used by SH4 to calculate torpedo gyro angles (i.e. the TDC calculations) are coded using script files or are hard coded within the .exe/.dlls? If they are in script files, then which one(s)? I am interested in how they work.

Any help would be much appreciated.

Cheers,
Andy

DarkFish 09-12-09 05:23 PM

they're hardcoded. But I guess they use pretty much the same maths as the historical system used.

trojanfoe 09-13-09 02:46 AM

Quote:

Originally Posted by DarkFish (Post 1170909)
they're hardcoded. But I guess they use pretty much the same maths as the historical system used.


OK thanks - do you know where I'd find the historical algorithm? I've googled to no avail.

Cheers,
Andy

Rockin Robbins 09-13-09 06:46 AM

If you want all the gory details, US Torpedo Data Computer, Mark 3. They have a whole chapter on underlying theory. Abandon hope all ye who enter there!:D

trojanfoe 09-13-09 05:18 PM

Quote:

Originally Posted by Rockin Robbins (Post 1171126)
If you want all the gory details, US Torpedo Data Computer, Mark 3. They have a whole chapter on underlying theory. Abandon hope all ye who enter there!:D


Many thanks - I'll give it a go

Edit - Just downloaded the first section - excellent stuff! Many thanks once again.

othr 10-05-09 11:31 AM

Pythagorean theorem with a mix of very basic physics:

http://en.wikipedia.org/wiki/Pythagorean_theorem

velocity = distance/time

Known: AoB, target speed, torpedo speed from all those you just calculate the time at which to launch your torpedo.


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

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