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 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-17-10, 12:20 PM   #11
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
And yes track angle does change when you change torpedo speed, AOB, or target speed.
t_torp - time when torpedo is hit to target
v_ship - target speed
r_ship - last calculated distance to target
AoB - AoB
t_angle - track angle

'calculate all angles in triangle (uboat-target-hit.point)
aux.angle = 180-AoB- (90-t_angle)

'law of sine to calculate intervals (ways) of ship/torpedo
s_ship = r_ship * sin(aux.angle) / sin(90-t_angle)
s_torp = r_ship * sin(AoB) / sin(90-t_angle)

'to hit torp.time = ship.time
t_torp = s_ship / v_ship

When you change the torpedo speed the track angle is changed, so v_speed value is included at t_angle.
__________________

PL_Andrev is offline   Reply With Quote
 

Tags
dbrn, favorite, new ui


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 03:01 AM.


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