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
1 answer

Is there no a class in Unity for building navmesh in editor mode in code?

Earlier, it was NavMeshBuilder, but with version 5.5 there is no such a class. How can I bake NavMesh in code in editor mode ? EDIT 1 I do not want to bake navmesh at runtime. All I want to do is bake navMesh in editor mode(NOT PLAY MODE) BY THE MY…
Vladyslav Khromykh
  • 757
  • 1
  • 5
  • 20
0
votes
1 answer

Strange NavMesh baking with huge voxels

I'm trying to use Navmash for path finding in my prototype but I'm having a problem because the "lines" the Agent will end up when it get close enough to the objective are hugely spaced out. Image: The red square is where the cube should end up in…
Lucas
  • 69
  • 7
0
votes
1 answer

Unity - NavMeshAgent not working with multiple corners

I am currently working on a Unity3D Game and I ran in some problems with the nav mesh agents. My current objective is to get enemies to walk towards the closest player (there will be 3). One I spawn an enemy it will check for itself which of the…
Marcel
  • 228
  • 1
  • 5
  • 12
0
votes
2 answers

Unity 5.4 "Set Destination" can only be called on an active agent, Wrong destination when instantiating

I am trying to spawn soldiers and move them as a regiment via mouse clicks on a nav mesh. But i get the ""Set Destination" can only be called on an active agent" error. I read in the forums that this can be caused by instantiating to high or low…
Little-God
  • 183
  • 1
  • 3
  • 16
0
votes
1 answer

Unity5 Survival Shooter GameObject has been destroyed

I'm following the Survival Shooter Tutorial on the Unity website, however, when I went to test if my 'Zombunny' was spawning correctly. It spawned fine, just as it should ... until I started shooting them , as soon as I killed my first enemy I got…
iFallOffStuff
  • 57
  • 1
  • 2
  • 6
0
votes
0 answers

Unity 5.4 : Standard assets & nav meshes

I just downloaded Unity 5.4 and I wanted to improve the car AI scene to learn how to use nav meshes. But nothing works : the nav mesh on my terrain is OK, nav mesh obstacles carve the nav mesh but the agent on the car still doesn't avoid…
Cryborg
  • 303
  • 3
  • 14
0
votes
1 answer

NavMeshAgent stuck (outside) the NavMesh

For enemies, I set a random position on the nav mesh every x seconds, so that the enemies walk around randomly. Here my scripts: Random point (from the unity docs) bool RandomPoint (Vector3 center, float range, out Vector3 result) { for (int i =…
Mirco
  • 2,940
  • 5
  • 34
  • 57
0
votes
1 answer

Is it possible to use Unity3D NavMesh in a server application?

Unity3D contains a core dll that called UnityEngine.dll. That library contains all logic for the engine, like NavMesh. Is it possible to use that dll in other applications, for example console applications, feed NavMesh with baked NavMesh from…
Nickolay Kabash
  • 239
  • 2
  • 12
0
votes
2 answers

In Unity, how to prevent animations from messing with the movement?

The problem: I have a character model with a Nav Mesh Agent component. It moves perfectly well to any destination I tell it to move (using the NavMeshAgent.destination property). But this suddenly fails as soon as I use an animation controller I…
user4385532
0
votes
3 answers

Coroutines and while loop

I have been working on a object movement along a path Which i have been geting from Navmesh Unity3d I am using coroutine in which i controled it with while loop as i can show public void DrawPath(NavMeshPath pathParameter, GameObject go) { …
0
votes
1 answer

Generating navmesh (3D) from walkable points

Here's the deal - I'm working on an algorithm/library that is able to generate a navigation mesh in virtually any environment where I can get coordinates for the controlled agent and/or for other agents within the same static environment. The only…
ncdbg
  • 21
  • 1
0
votes
1 answer

Unity: How to make multiple agents circle the building when I click to atk it in my rts game

I have tried to initiate several point arround the building to attack. but this way is not flexible enough, like the agents may have different radius, therefore the attack point shouldn't be that even. have any good ideas?
Jake Li
  • 9
  • 1
0
votes
1 answer

NavMeshAgent could not be set properly on imported 3d model in unity 3d

I am trying to set NavMeshAgent on imported 3D model in unity 3d but the navMeshAgent couldnot be set properly around my 3d model. If I extend the radius it covers unuseful part more than the 3d object.
Hemanshu Liya
  • 611
  • 6
  • 10
0
votes
1 answer

Loading terrains in Ogre and creating navigation mesh with Recast/Detour

I'm new to using Ogre and especially Recast/Detour, and I need a little help. I'm loading a terrain in Ogre and creating a navigation mesh over the top of it with Recast/Detour. I wanted to loaded more complex terrains because as of right now, I…
mpellegr
  • 3,072
  • 3
  • 22
  • 36
-1
votes
1 answer

Missing Nav Mesh in Unity

I wanted to give the monster a NavMeshAgent component, but it is not in the list of components, how can I add it there? Click here to view Image
Poka
  • 37
  • 4
1 2 3
14
15