[1.190.1] - Moving Missile Turrets are Inaccurate
Missile turrets will always aim at the wrong location when they are moving.
Please watch this video demonstration:
Steps to reproduce:
Option 1: Load into this test world:
Option 2: Follow these steps:
- Grid A is any movable grid with a functional missile turret, turned off
- Grid B is any movable grid with an enemy or neutral block
- Check that the missile turret is set to target the block on Grid B
- Fly Grid A in parallel to Grid B, at 50 m/s - 105 m/s, 200 m - 800 m from one another at equal, constant velocities
- To quickly accomplish this alone, I used a landing gear on a 200 m strut from Grid A to Grid B. But be sure the strut will not be a direct line from the missile turret to the target.
Grid A's missile turret will miss the enemy or neutral block on Grid B every time.
Grid A's missile turret should always hit the enemy or neutral block, as the target is not accelerating.
The error likely relates to inherited velocity, as missile turrets are still consistently accurate if the missile turret itself does not move (even for a very fast moving target). Modding missiles to have no inherited velocity (i.e., skipacceleration) makes the problem even worse. This suggests the problem is in detecting how much velocity should be inherited by the missile.