![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
12-17-10, 12:20 PM
|
#11 | |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Quote:
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.
__________________
![]() |
|
|
|
| Tags |
| dbrn, favorite, new ui |
|
|
