AI Command Lab // Flight Simulator
204B: The Blend Tree
Initial AI Output (Fragile)
// AI-Generated Code: Robotic Movement
if (speed > 5) animator.Play("Run");
else if (speed > 0.1) animator.Play("Walk");
else animator.Play("Idle");
Initial AI Prompt
"You ask the AI: "Handle walking and running.""
Pilot Comm Link
Mission Objective: A skilled Pilot directs the AI to use a Blend Tree. You command: "Map the velocity magnitude to a 'Speed' float parameter and drive a 1D Blend Tree."
Optimized Protocol
// Corrected: Fluid Motion // No If-Statements. Just physics driving art. animator.SetFloat(speedID, rb.velocity.magnitude);