Commit graph

6 commits

Author SHA1 Message Date
b1ac491186 Enhance missile behavior and state management
- Introduced new constants for missile control: `DISTANCE_BEFORE_ROTATING` and `ROTATION_SPEED`.
- Expanded `State` enum to include `TURNING` and `ACCELERATING`.
- Added variables for tracking missile position, speed, and acceleration.
- Implemented logic for initializing backward thruster and gyroscope.
- Added `CheckEnemies` method to switch to AI mode upon enemy detection.
- Introduced `Detonate` method for centralized warhead detonation logic.
- Updated `DistanceFromLaunch` property for accurate distance calculation.
2025-09-14 17:24:46 +02:00
0cbd5370f9 Enhance missile control logic in Program.cs
Updated constants for delay and auto-destruction times.
Added checks for required components in FindElements method
with improved error handling. Introduced new methods for
auto-destruction and enemy detection. Modified state update
logic to ensure correct missile behavior based on component
availability and current state.
2025-08-30 23:30:07 +02:00
ebf5477ad1 Use the new utilities functions and add the STOP command 2025-08-22 23:29:17 +02:00
482f5a9d7d Update dependencies 2025-08-22 23:27:39 +02:00
93b3689567 Lot of changes (Update to MDK2) 2024-11-03 23:45:58 +01:00
6b3ee666d6 Add missile launcher and missile controller projects 2024-05-08 21:20:58 +02:00