package astar const ( Cost_Straight = 10 // 垂直或水平方向移动成本 Cost_Diagonal = 14 // 斜向移动成本 Cost_Direction6 = 12 // 6方向移动成本 Cost_Turn = 8 // 转向惩罚 )