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
0
votes
0 answers

Failed To Create Agent after Build Game - Unity

My game is running normally in the runtime editor. The problem occurs with the build result. seen in the Output Log that the agent (NavMeshAgent) was not created because it did not close enough to navmesh. whereas in the editor the problem did not…
irwnsyh
  • 23
  • 7
0
votes
1 answer

Unity3D Duplicated NavMesh Agents not moving

In my scene, I have an agent which moves to a specific destination. As soon I try to duplicate it in order to create a second agent the resulting behavior is quite strange: the agents get transported to opposite corners of the map and stop moving.…
Claus
  • 5,662
  • 10
  • 77
  • 118
0
votes
1 answer

Make enemies be able to attack 2 different objects

Im making a wave survival game where you can build up defenses and I want to make it so the enemies will attack the objects you placed down to break them and come attack you. I want to know if theres a way to find if the enemy is not moving at a…
Cri
  • 85
  • 4
  • 16
0
votes
1 answer

Agents falling from navmesh on the navmesh under it

my game is a click to move game.In an area, I've got a navmesh walkable and under it there is another walkable part of navmesh. My problem is that usually after I attack an enemy, sometime but not always, when I click to move my player falls on the…
0
votes
3 answers

NPC instantiate on Navmesh

I am trying to instantiate a NPC prefab on a NavMesh in a grid fashion. The prefab has the component NavMeshAgent and the NavMesh has been baked. I am getting the errors: "SetDestination" can only be called on an active agent that has been placed on…
IlludiumPu36
  • 4,196
  • 10
  • 61
  • 100
0
votes
1 answer

Unity3d NavMesh is working strange, can't understand why

The first wave of green goes right (to the first waypoint), but after lengthening the tunnel, the second wave is why green you lose the first waypoint and go straight to the second. (And why is that somehow a roundabout way) Sorry for my bad…
JustLic
  • 1
  • 2
0
votes
1 answer

(Unity C#) NPC Movement Script + Animations Not Running Smoothly

I have created a NPC that follows the main player. When the player is in a certain range of the NPC, the NPC is supposed to walk, run, and attack based on the distance between the player and the NPC.The NPC has a C# MutantMovement Script attached,…
Vengeance
  • 3
  • 3
0
votes
1 answer

Detour recast tileLayer what is it about

I would like to ask how tileLayers in detour work. Can i layer any 2 tiles resulting in "cuts" being merged into bigger holes and in what manner, are there any limitations? How many of these layers can i have and how they interact when navigating.…
sadovsf
  • 58
  • 6
0
votes
1 answer

unity multiplayer - sync transform vs sync setdestination - navmesh agent

I'm new to scripting and I've been writing a dedicated UDP server for a 1V1 game Mova style game, using Navmesh agent. Should I constantly update player transforms or sync only when a player clicks to move, and setDestination to that position on the…
xred
  • 1
  • 9
0
votes
0 answers

Unity3D NavMeshAgent

I've been attempting to rid myself of this NavMeshAgent error for about 2 weeks now but can't seem to overcome it so I'm turning to SO. I have a Navigation Mesh, I have prodigally spawned enemies which are placed on the Navigation Mesh however I…
0
votes
1 answer

Custom NaveMesh movement and rotation in Unity

I don't find anything useful which implement custom movement and rotation for NavMesh in Unity. I don't want to use steering part of Nav Mesh Agent component but I want to use NavMesh obstacle avoidance and pathfinding.
ATHellboy
  • 704
  • 3
  • 15
  • 30
0
votes
1 answer

Should I put different NavMesh's in different classes?

So I have these three classes for a game I'm making. Infection Controller, then 2 child classes, InfectedClass and BloaterClass. This is in the InfectionController: void UpdateTarget() { GameObject[] Humans =…
0
votes
0 answers

[UNET][AI] My bot faces clients but doesn't walk to them

My AI is taking two player gameObjects calculates which one is closer and goes to him until he is close than he just faces him: For some reason the bot won't follow the client even if the host is really far away. using System.Collections; using…
0
votes
1 answer

Problems making anim.SetBool work with NavMeshAgent

I am working on setting up a simple little AI for a character in my game. For some reason I am having major problems getting animations to play while using the NavMeshAgent and I do not understand why. This is a waypoint system that I pooled off…
Robotics101
  • 93
  • 1
  • 2
  • 9
0
votes
1 answer

Script working properly on one gameobject, but not on another

I have a very strange problem. I created an AI using the navmesh tools and a custom script which keeps assigning a new destination to the navmesh agent once the old destination is reached. I had to replace the model for this AI (was a capsule…
Thrindil
  • 143
  • 3
  • 17