Squad Tactical AI
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.
Combat & Survival AI
Beyond movement, the agents possess an internal state machine that governs their behavior during combat encounters. This includes auto-targeting logic and a survival instinct that triggers when health reaches critical levels.
Combat Video Coming Soon
Currently recording the combat and fleeing logic implementation.
Behavioral Logic:
- Tactical Engagement: Agents automatically evaluate enemies within a specific range and prioritize targets based on proximity and threat level.
- Survival Fleeing: When an agent's health drops below a configurable threshold, its state changes to "Flee". It will then use Theta* to find the fastest path to a designated "Safe Zone" or return to the protection of the leader.