Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make homing projectiles travel at a constant horizontal speed.
Homing projectiles previously behaved like expanding circles, where the projectile was drawn at the closest point on the circle to the target. Which meant that if the target was fast, moving at right angles to the direction of the projectile, the projectile would move fast, too (and would not be travelling in the direction it was facing). Homing projectiles now go at a constant speed towards the target, using target prediction. To test the target prediction, set the projectile speed to something close to 700 (same as a VTOL), and try to get the VTOL to escape.
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters