AI Command Lab // Flight Simulator
303F: The Poisson Disc
Initial AI Output (Fragile)
// AI-Generated Code: Lazy Random
for(int i=0; i<50; i++) {
// Audit Fail: Coins will spawn inside each other.
Vector3 pos = new Vector3(Random.Range(0,10), 0, Random.Range(0,10));
Instantiate(coin, pos, rot);
}
Initial AI Prompt
"You ask the AI: "Scatter 50 coins on the floor.""
Pilot Comm Link
Mission Objective: A skilled Navigator directs the AI to use Poisson logic.
Optimized Protocol
// Corrected: Organic Spacing
List<Vector2> points = PoissonDisc.Generate(radius: 1.5f);
foreach(var p in points) {
Instantiate(coin, new Vector3(p.x, 0, p.y), rot);
}