ray

Owner: IIIlllIIIllI URL: git@github.com:nyangkosense/ray.git

testing missile

Commit 7a9beff8cac1bdc702f189dfa341de1df30b77ab by SM <seb.michalk@gmail.com> on 2025-06-30 11:21:32 +0200
diff --git a/build/JTACCoords/win_x64/JTACCoords.xpl b/build/JTACCoords/win_x64/JTACCoords.xpl
new file mode 100755
index 0000000..7cb9e4d
Binary files /dev/null and b/build/JTACCoords/win_x64/JTACCoords.xpl differ
diff --git a/missile_guidance.cpp b/missile_guidance.cpp
index 01ee942..557af17 100644
--- a/missile_guidance.cpp
+++ b/missile_guidance.cpp
@@ -73,7 +73,6 @@ void QuaternionFromDirectionVector(float dirX, float dirY, float dirZ,
     dirZ /= length;
     
     // Calculate rotation from (0,0,1) to direction vector
-    float forwardZ = 1.0f;
     float dot = dirZ; // dot product with (0,0,1)
     
     if (dot > 0.9999f) {
@@ -193,10 +192,6 @@ bool InitializeMissileGuidance() {
     return true;
 }
 
-// Shutdown missile guidance system
-void ShutdownMissileGuidance() {
-    XPLMUnregisterFlightLoopCallback(MissileGuidanceCallback, NULL);
-}
 
 // Set target coordinates for missile guidance
 void SetMissileTarget(const TargetCoords& target) {
@@ -398,6 +393,9 @@ extern "C" {
         return InitializeMissileGuidance();
     }
     
+    void ShutdownMissileGuidance() {
+        XPLMUnregisterFlightLoopCallback(MissileGuidanceCallback, NULL);
+    }
     
     void SetJTACTarget(double latitude, double longitude, double elevation, 
                        float localX, float localY, float localZ) {
diff --git a/missile_guidance.o b/missile_guidance.o
index ad810d4..fa829fe 100644
Binary files a/missile_guidance.o and b/missile_guidance.o differ