Skip to content

Stealth Guard (FSM)

Loading…

FSM playground: guards run a 5-state machine (patrol → suspicious → chase → search → return) driven by a vision cone and line-of-sight; the chase state composes modules/steering.

Controls: WASD / arrows to sneak, R reset

Source: examples/stealth-guard

Exercises: collision, fsm, input, math, motion, steering, tick, transform.