[FIXED] Torpedoes do not pursue targets despite detecting them.
Posted: Wed Oct 04, 2023 2:38 pm
Procedure to reproduce
Run the attached scenario as side "aaa".
Attack the ship with a torpedo.
Optionally, before running the scenario, disable automatic evasion on the ship for reasons discussed below.
Optionally, immediately after the torpedo seeker has detected the ship, switch to the ship's side and command it to change course.
Expected behaviour
When the torpedo seeker detects the target, in this case the ship, the torpedo should pursue the ship.
In this state, with the target detected, the torpedo should not perform any search pattern.
Actual behaviour
The torpedo runs to the end of its firing solution. It then begins performing a snake search.
Despite the torpedo seeker detecting the target, the torpedo continues its snake search, making no attempt to pursue the target and doing nothing to account for the location or motion of the target.
Unless the torpedo hits the target by chance despite this, the torpedo continues this behaviour even after having passed the target.
If automatic evasion was enabled on the target, you may also observe that the target responds to the presence of the torpedo by spinning in circles. I intend to report this in another issue.
To demonstrate that this torpedo behaviour is not caused by the behaviour of the target, you may disable automatic evasion and manually control the target. The resulting torpedo behaviour is essentially the same.
Run the attached scenario as side "aaa".
Attack the ship with a torpedo.
Optionally, before running the scenario, disable automatic evasion on the ship for reasons discussed below.
Optionally, immediately after the torpedo seeker has detected the ship, switch to the ship's side and command it to change course.
Expected behaviour
When the torpedo seeker detects the target, in this case the ship, the torpedo should pursue the ship.
In this state, with the target detected, the torpedo should not perform any search pattern.
Actual behaviour
The torpedo runs to the end of its firing solution. It then begins performing a snake search.
Despite the torpedo seeker detecting the target, the torpedo continues its snake search, making no attempt to pursue the target and doing nothing to account for the location or motion of the target.
Unless the torpedo hits the target by chance despite this, the torpedo continues this behaviour even after having passed the target.
If automatic evasion was enabled on the target, you may also observe that the target responds to the presence of the torpedo by spinning in circles. I intend to report this in another issue.
To demonstrate that this torpedo behaviour is not caused by the behaviour of the target, you may disable automatic evasion and manually control the target. The resulting torpedo behaviour is essentially the same.