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

Why my NavMesh agents does not work after build?

My agents do a great job in the editor for avoiding static and dynamic obstacles(carving) and finishing the platform but after I build it and they only stay where they are and they rotate some random locations different for each one. EDIT: I added a…
1
vote
1 answer

Unity Navmesh destroy Obstacle

I have a basic NavMesh setup in Unity. A plane, an Agent and a destination. So far, my Agent follows the path to its destination. When i Place an obstacle in its way, it will stop at the obstacle. Is there a way to tell the Agent (or the obstacle?)…
1
vote
0 answers

Navmesh in TPP for avatar in A-Frame

I am using Aframe for my metaverse project and I was working with FPP where the model and camera are in same position. The navmesh is working fine there. Now, I want to enable the TPP mode where avatar is present in front of the camera. All the…
1
vote
0 answers

Why does the accuracy of Navmesh Agent Path depend on Moving Object's Acceleration Value?

I use Unity's Navmesh agent to govern the movement of my objects. I am observing a weird behaviour: increasing the acceleration of my object increases the accuracy of the path. For example, consider the following two objects: Object 1 moves with…
user16779236
1
vote
1 answer

Unity Navmesh bake multiple maps in the same scene

I have an scene with multiple maps, and when the game starts I randomly activate one of the maps and keep the others inactive. My problem is that I can only have one the maps baked, because when I change to bake other map it's overwrited by the…
adrian
  • 97
  • 2
  • 12
1
vote
0 answers

Unity Navmesh dodge agents - RTS game

I'm making a RTS game and I'm having problems when I order my Units to attack I'm using NavMesh and all the units in the game are NavMeshAgents, I played with the stopping distance to stop the agents colliding with each other but when they have to…
adrian
  • 97
  • 2
  • 12
1
vote
1 answer

Set destination not working with instantiated childs

I have a script to instantiate a gameobject when the agent reaches its position, when instantiated it will randomly choose any of those 2, then 3, etc... this gameobjects belong to a parent (I use the random with childcount and getChild), however my…
Fanre5
  • 31
  • 2
1
vote
0 answers

Is there any way to use Navmesh with physics in unity using steeringTarget and CalculatePath()?

I am trying to make an enemy for my game, and I got it to work using Navmesh. The only problem I have is that my character controller for my player is rigidbody based, and I want the player to be able to push the Navmesh agent around. I think this…
1
vote
2 answers

Preventing the camera entering entities in A-Frame

I have using A-Frame that includes many randomly placed spheres () and a camera rig. The spheres are centred at random (x,y,z) coordinates at initialisation (and are at different locations on each access to the web page). The…
Nigel
  • 585
  • 1
  • 5
  • 20
1
vote
0 answers

Unity Navmesh Obstacle faces a different direction

My NAVMESH OBSTACLE faces a different direction from my Buildings as the picture shows. How do i correct this?
LEGIT
  • 21
  • 4
1
vote
1 answer

Navigation Graph(for Game Agent) generation/edition tools

I'm writing a 2d game in which an agent has to go to anywhere of large map, automatically. Ofcourse, the map's got lots of obstacles, geometries, etc. I decided to implement it with NavGraph (Navigation Graph), and read a very useful, great article…
coding monster
  • 384
  • 4
  • 18
1
vote
2 answers

Unity Navmesh Performance Issue

I am currently working on a fire evacuation project using Unity Engine navmesh component. However, when I increase the number of agents, the performance of evacuation decreases significantly. Some agents are waiting very long time to evacuate. Do…
1
vote
1 answer

How can I find out the route to the NavMeshAgent target

I want to know the route in advance before the hero walks through it, and draw it by means of line Render, tell me if it is possible to find out in any way the route from the agent without letting the body in front of him that he would have already…
1
vote
1 answer

Move Unity navmesh multiple agents to single point and stop pushing each other

I am making a game that requires multiple characters to navigate through narrow pathways. I keep getting this problem where the characters keep pushing each other at junctions and get stuck. There is not enough space to maneuver and avoid each…
1
vote
1 answer

Instantiate doesn't work in unity with navmesh

I'm having some problems on instantiating an enemy in unity, it gives me always this error setDestination" can only be called on an active agent that has been placed on a NavMesh., and then it places a 2d model somewhere in my map public…
Jeral
  • 45
  • 4