Tier 3 Series 205

205G: The Control Exam

Capstone Exam
Pilot Record
Student Profile
"The flight stick is unresponsive. The ship moves faster diagonally, the gamepad drift is spinning the camera, and the "Fire" button doesn't work on the controller. Identify the three critical input failures."

Target Asset for Audit

FRAGILE_CODE_DETECTED
using UnityEngine;

public class FlightStick : MonoBehaviour {
    public float speed = 10f;

    void Update() {
        // Audit Requirement: Lesson 205A (Action Abstraction)
        // Error 1: Hardcoded Hardware
        if (Input.GetKeyDown(KeyCode.Space)) Fire();

        // Audit Requirement: Lesson 205C (Composites)
        // Error 2: Non-Normalized Movement
        float x = Input.GetAxis("Horizontal");
        float y = Input.GetAxis("Vertical");
        // Moving (1,1) results in magnitude 1.4
        transform.Translate(new Vector3(x, y, 0) * speed * Time.deltaTime);

        // Audit Requirement: Lesson 205D (Processors/Deadzone)
        // Error 3: Raw Input Drift
        // No deadzone logic applied to the raw axis data.
    }
}

Supervisor's Certification

Authenticated Pilot
pilot_bfa0a4dfc14f8092
Session Secure

Failure Point #1

Hardware Coupling

The AI is checking `KeyCode.Space`. Command it to use an Input Action.

Failure Point #2

Composite Normalization Failure

The AI calculates X and Y separately. Command it to use a Vector2 Composite.

Failure Point #3

Deadzone Failure

The code reads raw axis data with no filter. Command it to use an Input Processor.