Part
Movement and pathfinding
You might say: locomotion control, navigation, getting there
The systems that turn a chosen destination or formation order into legal, readable motion through the world.
- What it does
- Makes good decisions look competent by finding routes, respecting terrain and steering around agents and obstacles.
- Ask
- Can the unit reach the chosen place, and does its route still look intentional when the world changes?
- Trouble
- Units get stuck, take absurd detours, collide, bunch up or arrive too late for the decision that sent them.
What to look for
- A route line over walkable ground
- Units slowing, separating and turning around obstacles
- A group arriving without collapsing into one point
Parts
- Pathfinding: A graph search that chooses a sequence of connected locations from a start to a goal.
- Navigation graph: The locations and connections that pathfinding is allowed to search.
- Path cost: The accumulated price assigned to a route, including distance, terrain, time, danger or other tactical preferences.
- Steering: Reactive movement forces that turn a route or goal into velocity while handling local obstacles and nearby agents.
- Group movement: Movement rules that keep several units coordinated while preserving spacing, roles, routes or formation shape.
Pattern
Sources
- Craig W. Reynolds, Steering Behaviors For Autonomous Characters, Abstract and Introduction
Combinations of steering behaviors can be used to achieve higher level goals (For example: get from here to there while avoiding obstacles, follow this corridor, join that group of characters...)
- Amit Patel, Map Representations, Map representations
The map representation can make a huge difference in the performance and path quality.
- Ian Millington and John Funge, AI for Games, Third Edition, ch. 3, p. 42
A movement algorithm is designed to use these properties to work out where the character should be next.
Use it on your project
teardown-apply: hold "Movement and pathfinding" (movement) from the teardown at https://teardownatlas.com/game-ai/ against my project
Paste it into a coding agent that has the teardown skills.
An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal