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

Using NavMesh on Unity3D project, not working on a bridge? (Solved!)

I'm fairly new to unity, and I'm currently making a little 3D mini game. I made a terrain where I raised it, then cut out bits for a river. To get across to the other parts of land, I made makeshift bridges with cubes. However, when I bake my…
-1
votes
1 answer

How to use pathfinding on a map image in unity 2d?

In my 2d android game, I have an image of a map as the background. I want to spawn objects and make them walk to a given destination. However, I want them to walk on the actual roads. I tried to use pathfinding grid and navmesh, however, they are…
UnBanned
  • 121
  • 11
-1
votes
1 answer

How do I activate NavMesh in Unity?

I'm making a car type game, and wanted to use NavMesh to "control" my car. I was wondering how exactly to activate it, as I can't find a straightforward answer anywhere else.
liamm737
  • 1
  • 2
-1
votes
1 answer

UNITY3D: How do I Set NavMesh Agent Walking Speed to 0 but keep him rotatin towards the player

I made a zombie with a Navmesh I made the zombie follow the player by agent.destination I made the zombie if close to target he will start attacking -My question is how to stop the zombie from waking towards the player if he is in attack state but…
-1
votes
1 answer

Unity 3D Counting Number of Agent Passes through a door

I am trying to make fire evacuation simulation by using Unity. I need to count the number of agent passes through the exit door during the evacuation. Is there any way to do it ?
-1
votes
1 answer

Unity Navmesh Agent blocked

I have a project where I am using NavMesh Agent and Obstacles as a core mechanics of the game. I have baked a NavMeshSurface to the ground so the Agents can find their way to the End point. The player is placing Obstacles in front of the Agents to…
-1
votes
1 answer

navmesh agent and obstacle on the same gameobject

i am trying to add navmesh obstacle and navmesh agent component on the same GameObject. However, I am getting a strange behaviour (the object will keep change it position randomly). SO, if we have two agents in a narrow corridor, although they block…
-1
votes
1 answer

How to follow the unit when you click the mouse

I need my unit to move to the enemy when i clicking mouse on enemy and destroy when my unit touch him For moving i use navmesh and raycast hit All units have navmesh agent Enemies moving by points
AVOCATO
  • 3
  • 2
-1
votes
1 answer

How to make characters follow a manageable one

I am making a game and I want to make two others follow the one I drive. If you can in the form of a v or triangle and if not in a row. I have done a navmesh. What I want to do is drive all 3 at the same time and have the other players follow
Helen
  • 1
  • 1
-1
votes
1 answer

NavmeshAgent player not parallel to slope of hill when moving over hill

NavmeshAgent player not parallel to slope of hill when moving over hill. On plane surface its going smoothly. See Video Below Image properties of navMesh and player https://ibb.co/fijmoV using System.Collections; using…
Every Thing
  • 333
  • 2
  • 12
-1
votes
1 answer

Unity 3D Nav Mesh Baking Didnt Cover All Area

I'm currently working on the pathfinding section for a game project. I have a problem with baking my navmesh - it didn't cover all of the area I wanted to make walkable. Here is an image of the problem: How can I cover the entire area with a…
-1
votes
1 answer

using navmesh graph along with a pathfinding algorithm A*

I am using navmesh graph consisting of triangles. To find the shortest path from start to goal point, I have taken into consideration A* algorithm. Though I want to perform a rough preliminary kind of search to find the path from start to goal, it…
user3124361
  • 471
  • 5
  • 21
-1
votes
2 answers

Random Walk + Exploration Algorithm for game AI. Scene Tiles

I am trying to come up with an algorithm for random walking in a scene tile based game. The walker needs to be able to randomly navigate until all tiles are explored or until it finds the next level. So far I have the tile as explored if the actor…
Vans S
  • 1,743
  • 3
  • 21
  • 36
-2
votes
2 answers

Can I make my enemy run towards the player faster in this code? (Unity)

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class Enemy : MonoBehaviour { public NavMeshAgent Ninja; public GameObject Player; public float NinjaDistanceRun = 30.0f; …
1 2 3
14
15