how to make microgame hoverbot to patrol in the sky
Hi, I am a newcomer. I am sorry if asked something stupid.
I am trying to place a hoverbot
that patrols in the sky but I cannot simply drag its Y-axis up. Otherwise, it goes back to the ground and hovers at the same height when the scene is loaded. If I drag the Y-axis too high, the NavMesh cannot detect it and causing the following error.
"SetDestination" can only be called on an active agent that has been placed on a NavMesh.
UnityEngine.AI.NavMeshAgent:SetDestination (UnityEngine.Vector3)
Unity.FPS.AI.EnemyController:SetNavDestination (UnityEngine.Vector3) (at Assets/FPS/Scripts/AI/EnemyController.cs:318)
Unity.FPS.AI.EnemyMobile:UpdateCurrentAiState () (at Assets/FPS/Scripts/AI/EnemyMobile.cs:112)
Unity.FPS.AI.EnemyMobile:Update () (at Assets/FPS/Scripts/AI/EnemyMobile.cs:65)
Why is it? Is there any way I could achieve the goal? Thank you.
Comment
Your answer
Follow this Question
Related Questions
AI Patrol 0 Answers
Gradient Sky Goes to Black After Adding a Terrain to the Scene 1 Answer
3D enemy pathfinding over moving platform 0 Answers
Monsters are walking around without my permission, why? 0 Answers