AI Command Lab // Flight Simulator

300D: Directional Logic

Initial AI Output (Fragile)

// AI-Generated Code: Audit Failure (Messy & Heavy)
void Update() {
    // Audit Fail: This requires complex angle math or 
    // a giant 'Cone' trigger that kills physics performance.
    float angle = Vector3.Angle(transform.forward, player.position - transform.position);
    if (angle < 45f) {
        Attack();
    }
}

Initial AI Prompt

"You ask the AI: "Check if the enemy is looking at the player before it attacks.""

Pilot Comm Link

Mission Objective: A skilled Navigator directs the AI to use the Dot Product.