Unity 添加 navmesh agent 但为什么 navmeshagent 区域在对象之上?

Unity adding navmesh agent but why does the navmeshagent area goes on top of the object?

我不知道为什么,但是当我试图给一艘船一个 navmesh agent 时,播放时它突然翻转从这个 Normal Ship To this Flippedship. And when I check it, it is because the area of the navmesh agent is on top of the ship like this.NavMeshAgent area for the ship。有没有办法改变它?

PlayerUnitShipRoot     <----NavMeshAgent
    PlayerUnitShip     <----Mesh Filter & Mesh Renderer
  1. 创建一个新的游戏对象 (PlayerUnitShipRoot)。

  2. 把你的原始模型(PlayerUnitShip)放在下面。

  3. 在 PlayerUnitShipRoot 上添加 NavMeshAgent。

  4. 移动并旋转 PlayerUnitShip 到合适的位置。