Questions tagged [navmesh]

From wiki: A navigation mesh, or navmesh, is an abstract data structure used in artificial intelligence applications to aid agents in path-finding through large spaces.

A navigation mesh, or navmesh, is an abstract data structure used in artificial intelligence applications to aid agents in path-finding through large spaces. Meshes that do not map to static obstacles in the environment that they model, offer the additional advantage that agents with access to the mesh will not consider these obstacles in path-finding, reducing computational effort and making collision detection between agents and static obstacles moot. Meshes are typically implemented as graphs, opening their use to a large number of algorithms defined on these structures.

224 questions
1
vote
0 answers

Unity "Set Destination" can only be called on an active agent

I tried everything, i baked navigation mesh manually but still it doesn't work. If you know how to solve that problem please help me. using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class…
Burak Fidan
  • 23
  • 1
  • 8
1
vote
1 answer

Unity's NavMesh Agent glitches on navmesh edges

I've recently started playing around with AI and Unity's built in pathfinding. So far I haven't had any bigger troubles with it but yesterday I imported a mountain model with a path going from it's base to the very top. My AI game object consists…
Fiffe
  • 1,196
  • 2
  • 13
  • 23
1
vote
1 answer

Unity navmesh agents

I'm working on a RTS game. I did a normal move script and I increase the agent's stopping distance so they don't look at each other and pump that much. But they still hit each other. I can't find the way to make agents avoid each other and not push…
Zid Lyx
  • 129
  • 2
  • 12
1
vote
1 answer

Unity's NavMesh link does not connect properly on runtime

I am using the latest version of Unity 2017.1f1 currently up-to-date. What I am trying to do In my 2.5D game, I am spawning enemies that will navigate towards the player while avoiding obstacles (with curving enabled) spawned in runtime. I also…
F J
  • 11
  • 6
1
vote
1 answer

Unity navmesh. follow + stop certain distance away from target

Hi so what im trying to create is the player can right click on an enemy and he will follow at a certain distance. which is working fine. but what i want it to also do is stop at that distance too. currently if the enemy stops he will try and go to…
pvtctrlalt
  • 61
  • 2
  • 9
1
vote
1 answer

Unity additive Scenes + Navmesh

I have 3 scenes in unity 5.5.1f : Scene base is permanent. (Contollers + Player + Manager...) + navmesh of scene 1. Scene 1 + navmesh in his own scene folder. Scene 2 + navmesh in his own scene folder. When i start the game. I have my base +…
mad_mask
  • 776
  • 2
  • 10
  • 31
1
vote
0 answers

Detect an OffMeshLink without using an Agent

I'm doing a AI using the NavMesh pathfinding solutions, and I don't to want to use a NavMeshAgent because of some limitations (like teleporting when a carved object comes close, etc.), Thus I made a sort of fusion, moving a Rigidbody on the path of…
1
vote
2 answers

GetRemainingDistance can only be called on an active agent that has been placed on a NavMesh

I have two errors: The first error is: MissingComponentException: There is no 'NavMeshAgent' attached to the "ThirdPersonController" game object, but a script is trying to access it. You probably need to add a NavMeshAgent to the game…
TheLost Lostit
  • 505
  • 6
  • 28
1
vote
0 answers

Unity NavMesh obstacle uncarve?

Is there a way to undo all the changes that navmesh obstacle does and reset my NavMesh to its original baked form (using scripts while the player is playing)? Thanks
1
vote
4 answers

Unity Navmeshagent won't face the target object when reaches stopping distance

I'm trying to get the NPC to look at the main character when I'm talking to him. I need to make sure it looks natural and that he is facing me. I know I can do Transform.LookAt() but that is too instant and unnatural. How do I rotate the…
AdamTheGun
  • 61
  • 1
  • 1
  • 3
1
vote
1 answer

Baking a NavMesh Puts Walkable Space on the top of an Obstacle

I am working on a game using a NavMesh system. I place obstacles and in the Navigation tab, mark them as static. The floor and walls are also static. Then I bake the Nav Mesh. However, it builds a NavMesh on top of the obstacle, as well as…
Kataware
  • 167
  • 2
  • 5
  • 11
1
vote
1 answer

Unity does not update NavMeshAgent destination in coroutine

I'm working on an AI script in Unity 5 mostly constructed of coroutines to move around an AI object in my game. It actually works pretty well and is frame independent that way. I'm trying to avoid cluttering the Update function of the…
Jurgen
  • 311
  • 3
  • 10
1
vote
1 answer

Java 2D navmesh generation

I'm working with a polygon clipper (http://www.lighti.de/projects/polygon-clipper-for-java/) & libgdx delaunayTriangulator to generate a 2D navmesh. Everything works well until i add an obstacle polygon completely inside the 'walkable' polygon. Is…
Ploppy
  • 14,810
  • 6
  • 41
  • 58
1
vote
1 answer

Unity3D NavMashAgent not moving -C# Code

I don't know this is a right place to ask this. Because this is a Game development ralated question. I post this question in here (gamedev.stackexchange.com -https://gamedev.stackexchange.com/questions/109190/navmashagent-not-moving) but still no…
Sajitha Rathnayake
  • 1,688
  • 3
  • 26
  • 47
1
vote
0 answers

Unity3D NavMesh giving jerky like motion

I instantiate Gameobjects that have a NavMeshAgent attached to them. Their destination is the player that can move around a map, that has a baked NavMesh on the map. The problem I'm having is that after a few of these enemy Gameobjects get…
Tom
  • 2,372
  • 4
  • 25
  • 45