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

Debug.Log being delayed in Unity

While trying to create a game in Unity about you building a small city I stumbled upon a problem. I'm using NavMesh to have the player lead around tiny people (called mixxes here). The NavMesh is working, just I'm trying to make the mixxes produce…
1
vote
0 answers

UE4 Navmesh isn't the same in viewport and in game

So I am making a navmesh in a scene which loads multiple levels, everything work except when the navmesh is rebuilt on startup it isn't the same as the one I see in the viewport and is way less accurate now for some reason(it is important to reload…
Carry Boo
  • 11
  • 3
1
vote
1 answer

NavMesh not including all the surfaces

I have a level made with pro builders and at that level there is an agent who attacks the player. The problem is that when i baked the navMeshSurface i did not include all the walkable surfaces. See the image below :- I am now really frustrated…
programmer pro
  • 169
  • 1
  • 2
  • 12
1
vote
2 answers

How to make NavMesh Agent stop and then continue his movement

I am trying to make enemy patrolling system, where evrytime guard reaches his point, he stopes for 10 seconds, and then continue his movement. I've tried combining animations from Blend tree with isStopped property from NavMeshAgent. EDIT: My…
AnkerCup
  • 13
  • 1
  • 1
  • 6
1
vote
0 answers

NavMesh agent oscillating before going yo destination

I have a NavMesh issue that's been bothering me for days. When in "Patroling" state, the agents choose a random tile on the level and their destination is updated accordingly. Problem is, as you can see in the video, agents sometimes "oscilate" for…
fleacoco
  • 61
  • 3
1
vote
0 answers

Objects stuck on the edge of Navmesh surface

The resulting image So I have made a Navmesh surface on a plane in unity 3D. The cube will constantly spawn cylinders to get it to move towards the sphere. But the cylinders spawned continue to try to move on the edge of Navmesh surface and as a…
YoKurt
  • 11
  • 1
1
vote
1 answer

NavMeshAgent face same direction as destination point in Unity

I have a NavMeshAgent NPC that walks correctly to its destination position. However, when it stops, it faces the walking direction, while I would like to have it turn to the same direction as the destination point, in the most natural way as my NPC…
Koosshh56
  • 317
  • 3
  • 17
1
vote
1 answer

How to Record Direction of NavMesh AI agents

I am wondering on a way on how I can grab the direction a Navmesh Agent is walking, with these values I planned on referencing them to a Blendtree to where certain animations would play depending on the AI direction, Using a 2D Free form Cartesian…
Timberghost_
  • 155
  • 4
  • 16
1
vote
0 answers

Unity3D - How can I implement first targeting in my Tower Defense game?

I am making a tower defense game where NavMeshAgents travel through a path from the spawn point to the end. My enemies all travel the same path (for now), but they travel at different speeds. Currently, my towers always target the enemy closest to…
Appllo
  • 11
  • 4
1
vote
1 answer

Unity3D: Do Unity's NavMeshAgents no longer push lower priority agents out of the way?

I've recently come across a slight issue with Unity's agents. Up until now, our Agents would be pushed out of the way if they intersected another (higher or equal priority) agent. However recently that behaviour has changed and they just…
NeoKuro
  • 457
  • 1
  • 5
  • 21
1
vote
3 answers

How to change conditions in Update() unity c#

I have created navMeshand agent. For target I used two empty object. For each empty object I created two buttons. If I click on white button agent moves to empty target first again I click on red button agent moves to 2nd empty target. I am facing…
Night Programmer
  • 341
  • 5
  • 25
1
vote
4 answers

How to "bake" NavMesh from script at runtime?

how to bake NavMesh in runtime from script. I searched in Google but did not find. some rendered scene and buttons including bake
1
vote
1 answer

Unity - Pairing NavMeshAgent with an Animator

In my project, I am using the ThirdPersonController that I imported from Unity's Standard Assets. I also have the ThirdPersonAnimatorController for the Ethan Figure. I set up a NavMesh in my scene and created an Ethan GameObject with the Animator…
Jsbbvk
  • 180
  • 2
  • 19
1
vote
1 answer

Unity navmesh ai stuck

I am trying to develop an AI that works with photon networking system, in unity engine. It should be fairly simple: it runs to a random player till it reaches 5 units distance between him and player, then it walk at a slightly slower speed till it…
user193464
  • 380
  • 1
  • 6
  • 25
1
vote
1 answer

How to travel multiple navmeshes in Patrol.JS?

I am using patrol.js. for navigation. On one navmesh I can navigate. Suppose I have to navMesh Can i navigate from one navMesh to other navmesh. code for one navmesh var objLoader = new THREE.OBJLoader(); objLoader.load(…
user9532497