05-05-2015, 03:58 PM
(This post was last modified: 05-05-2015, 04:00 PM by LogicParrot.)
(05-05-2015, 07:26 AM)xoft Wrote: Note that "open" door is somewhat vague. It's not enough to check the "openness" bit, because it effectively only says which side of the block is blocked by the door. It's possible to place a door that lets things through when it's "closed" and blocks things when it's "open". This might need a change in the A* logic, instead of asking "is block solid", it should ask "can I go from block A to neighbor N?" This kind of questions can then be answered using the door data.
Good point.
I want to tweak the basic stuff before starting with doors though (Path recalculation, Bounding boxes, and when to call ResetPathFinding, etc.)
edit: typo