New Pathfinding
New Pathfinding
The core A* function will work, but a few changes will need to be made. First, a check for toggling kneeling/standing will be needed. Also, a check for falling/descending and climbing/rising will be needed. So from any given cell, these will be the following pathfinding vectors:
North
South
East
West
NorthEast
SouthEast
SouthWest
NorthWest
Up
Down/Fall
Stand/Crouch
There will also need to be two sets of these vectors per cell- one for when standing and one for when kneeling. Also, for determining the TUs needed for using a ladder, if ladders are directional, the best direction into that cell must be recorded as well.
SW=3
NW=3
SE=3
NE=3
N=2
W=2
E=2
S=2
Up=2
Kneel=1
Dn=2
(1, 2, 3)
Standing
Best TUs:7
Best Dir:3
(1, 2, 3)
Kneeling
Best TUs:8
Best Dir:3