基本路径搜索和航点应用Basic Pathfinding and WaypointsAt its most basic level,pathfinding is simply the process of moving the position of a game character from its initial location to a desired destination.基本路径搜索是从初始位置移动到目标位置的过程。基本路径搜索Basic pathfinding algorithmif(positionXdestinationX)positionX-;else if(positionXdestinationY)positionY-;else if(positionYdestinationY)positionY+;限制条件Some limitationsSimple path movementLine-of-sight path movement障碍问题Problems with obstacles(1)随机运动避开障碍Random Movement Obstacle Av