The primary way to move things about in CCBK.
storage workers moving items, hunters collecting meat, architects inspecting buildings
Among other base functions Walkers have a setting for PathType which specifies the kind of pathfinding it will use to get to its destination.
Simple A* Pathfinding inside the road network on the map. Usually used for all kinds of destination walkers.
carriers delivering goods, workers walking to a monument site, …
Same as Road but points with RoadBlockers are removed. Usually used for all kinds of roaming walkers.
water carrier distributing out water,
This Pathfinding uses Unity NavMesh. All demo scenes have a gameobject called Navigation that is used purely to generate the NavMesh. To change the NavMesh follow these steps.
- activate Navigation gameobject
- adjust the objects inside Navigation
- make sure Navigation Area is correctly set to Walkable/Not Walkable
- bake the NavMesh
- deactivate Navigation gameobject
immigrants walking to their new homes, hunters walking to pray, …
Simple A* pathfinding of all points on the map that are not occupied. Only feasible for small maps, on larger maps use Map pathfinding instead.
The walker base class includes helper methods for various modes of walking. These save their states automatically and can easily be continued on loading.
Directly pass a WalkingPath for the Walker to follow it immediately.
used when the path is checked before the walker is even spawned like storage walkers
Tells the walker to try to find a way to a target or give up after a certain time. The walker can be given a target building or position to check pathfinding by itself or a function that returns one.
deliver walkers spawned by production are spawned and have to figure out a path afterwards
The walker randomly walks around while trying to avoid points already visited. It does for a set number of steps specified in Range, how many positions it remembers is defined in Memory.
well workers handing out water, bazaar workers selling food
Moves to a random adjacent point