Squad Tactical AI

Unity C# Theta* Pathfinding Boids Squad Logic

Showcase of the Theta* global pathfinding and local obstacle avoidance with a player-led squad.

Navigation & Movement

This system focuses on high-performance squad navigation in complex environments. It combines global long-range pathfinding with local group steering Behaviors to create a seamless movement experience.

Key Technical Features:

  • Theta* Pathfinding: Unlike standard A*, which is restricted to grid lines, Theta* allows for "any-angle" paths. This results in much smoother, straight-line navigation that looks more natural for human-like or creature-like agents.
  • Boids Dynamics: The followers use a combination of Separation, Cohesion, and Alignment rules. This ensures the group feels like a cohesive unit while preventing clipping and un-natural crowding.
  • Leader-Follower Hybrid: The group maintains a tactical proximity to the leader (the player), but each individual agent handles its own local obstacle avoidance and path correction in real-time.