AI Command Lab // Flight Simulator
104A: The Rigid Body
Initial AI Output (Fragile)
// AI-Generated Code: Physics Break
void Update() {
// Audit Fail: "Teleporting" a physics object ignores collisions.
// The object will pass through walls.
transform.position += Vector3.forward * speed;
}
Initial AI Prompt
"You ask the AI: "Move the player forward.""
Pilot Comm Link
Mission Objective: Direct the AI to use AudioMixer groups to manage volume and effects globally.
Optimized Protocol
// Corrected: Physics Aware
void FixedUpdate() {
rb.velocity = Vector3.forward * speed;
}