Game Development Reference
In-Depth Information
# ...
end
What this does is automatically change state to navigating when tank is about to hit an
obstacle. It also tracks tank location, and if tank hasn't moved 20 pixels away from it's
original direction for 5 seconds, it enters
TankStuckState
, which deliberately tries to
navigate away from the
stock_at
spot.
AI navigation has just got significantly better, and it didn't take that many changes.