Got some progress on the torpedo, namely:
- got the guidance computer configurable: marchCourse, marchSpeed, activeSpeed, searchPattern, activationRange and activeCourse are being accepted and used.
- Straight, snake and spiral search patterns working, albeit not configurable. That'll do for now.
- fuel depletion logic is working, slower torp swims longer and generally covers more distance during it's lifespan.
- active sonar seeker works and actually homes onto the moving target.
- reused old quadtree code to handle simplistic detonation and kill checks.
Here is an example kinematic trace from the snake search test - flank speed torpedo intercepts player submarine going flank. On the right you can see active sonar image that is used to generate approach solution.