![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
12-17-10, 12:02 PM
|
#1 | |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Quote:
![]() At your screen: Is the track angle changing when you change the torpedo speed? Could you show me three screens with track angle for three torpedo speeds when you are parallel to target? It looks like: |...... | sub ship (with any speed)
__________________
![]() |
|
|
|
12-17-10, 12:04 PM
|
#2 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
12-17-10, 12:20 PM
|
#3 | |
|
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.
__________________
![]() |
|
|
|
12-17-10, 03:38 PM
|
#4 | |
|
Black Magic
![]() |
Quote:
![]() Plus I think this is overcomplicated - we should be able to simply take distance to target / torp speed to find time to impact EDIT: ok, after thinking it over we do need to calculate like you posted Antar in order to take into account target's speed. I don't see how you are factoring in torp speed into this calculation? EDIT2: Seems to be a problem with this calculation. Time value is going positive and negative like a sin function... track angle and angle on bow are values of -180 to 180 (not 0 to 360). That might be why. EDIT3: math functions don't like it when you pass them angles instead of radians...so now time is steady but the time increases as the target gets closer..... Are we not doing anything with s_torp?? The division by 0 is still a problem also Last edited by TheDarkWraith; 12-17-10 at 04:18 PM. |
|
|
|
12-17-10, 04:27 PM
|
#5 | |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Quote:
1. When the target speed is 0 these calculations have no sense, and the time impact = range / torp_speed 2. There is no easy way to calculate it, this is the reason why torpedo electromechanical computer was on uboats... 3. The torpedo speed create a different track angle, so we do not need special calculations for torpedo speed, 4. First you calculate ship and torp distance, they should be positive both. Check the angles they should be positive. Check the angle calculations. Aux.angle should be positive. AoB + aux.angle + (180-torp.angle) = 180 5. AoB and track angle on my calculations should be 0-180 only. Keep positive only (AoB, track_angle) - the sign +/- depend from target's direction course. They should be positive or negative both together. 6. There are mistake in calculations: aux.angle = 180 - AoB - (180 - t_angle) s_ship = r_ship * sin(aux.angle) / sin(180-t_angle) s_torp = r_ship * sin(AoB) / sin(180-t_angle) For me the 'degree' are more natural than radians, (but you have AoB, tarck angle in degrees too). It is no problem to use radians - only change is: 180° = 3,1415rad (pi number)
__________________
![]() |
|
|
|
12-17-10, 05:16 PM
|
#6 |
|
Navy Seal
![]() |
The game has "torp run time" already.
If you look at mav map (torp solution line on) and adjust any range setting, a time is displayed at end of line. Could this be used? |
|
|
12-17-10, 05:20 PM
|
#7 |
|
Black Magic
![]() |
v5.7.0 released. See post #1 for details
![]() to those who tested this, you'll need to download this as more errors/bugs were fixed. I'll be out snowboarding this weekend so I'll attend to any bugs/errors/etc. when I return
Last edited by TheDarkWraith; 12-17-10 at 05:41 PM. |
|
|
12-18-10, 07:19 AM
|
#8 | |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
Quote:
Here are the formulae to convert degrees into radians and back: radians = degrees * pi() / 180 degrees = radians * 180 / pi() EDIT: I guess the game takes the run-away and the turn into account when showing the tracking angle so we can consider that the path is straight. Then there is no error in Antar's calculations. EDIT2: Can the torpedo run time be reflected by the red needle on the chrono? I.e. the same as in vanilla when you fire it but before the launch? Last edited by Vanilla; 12-18-10 at 07:32 AM. |
|
|
|
12-18-10, 07:27 AM
|
#9 |
|
Black Magic
![]() |
just noticed a crash when returning from a mission and then going to request a new mission (campaign). I found the cause of it and I'll have to release a new version to fix it. So I'll be releasing v5.7.1 here soon.
Here are some of the other things I have noticed and fixed also: v5.7.1 - fixed bug of navigation fixes not cleared (reset) at game end - fixed bug of navigation fixes visible on navigation map while receiving new mission orders - fixed possible game hang when setting new navigation fix close to actual boat's position - fixed game crash that happens when in campaign and you do a mission then return to base and request a new mission These navigation fixes are kicking my butt. Price to pay for adding something entirely new to the game But once these are sorted out adding the super marks will be a breeze.Patch 1 released for v5.7.0. See post #1 for details. Last edited by TheDarkWraith; 12-18-10 at 08:10 AM. |
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
