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

How to make smooth vision of navmesh agent moves?

Im using Unity 2d with NavMeshPlus (git repository which creates ability to use NavMesh in 2D, there) When i move my character with following him camera and navmesh agent coming to me, his moves seems rough. It happens when my camera moving in…
vala79
  • 11
  • 3
0
votes
0 answers

Unity3d NavMesh refuses to bake anything but planes as walkable objects

Here is an example of an empty project that has a newly created cube as a Navigation Static with a walkable navigation area enter image description here And here is a completely other project that I have worked on for a while. Same baking settings,…
0
votes
0 answers

Spawning enemies on a Nav Mesh Surface in a randomly generated 2D Dungeon

for the past few months I've been making a Binding of Isaac like game with some inspiration from the older Zelda games. I previously made a post here ( Generating a Navigation Mesh at runtime for a 2d semi-procedural dungeon crawler(Unity) ) where I…
0
votes
0 answers

Problems with Unity and the package NavMeshPlus

I am having problems with The package NavMeshPlus for Unity, (used to make the navmesh work for 2D games.) I'm coding in c#, but it's not the coding that is the issue. I'm doing something wrong, but the tutorial seems to be very outdated so I'm sort…
0
votes
2 answers

How do I make Navmesh Agent in Unity follow the closest player?

I am making a multiplayer game where a navmesh agent follows the player, if there are multiple it only follows one until it is no longer in the scene. How would I make the Navmesh follow both? using System.Collections; using…
0
votes
0 answers

AI photon pun2 i dont understand why this is comming

Exception: Write failed. Custom type not found: AINavmesh ExitGames.Client.Photon.Protocol18.WriteCustomType (ExitGames.Client.Photon.StreamBuffer stream, System.Object value, System.Boolean writeType)…
0
votes
0 answers

NavMeshAgent yellow lines description

I'm creating an AI for my game which takes cover when it spots the player. From what I have tried it is working pretty well until now but my agent is not moving to the given destination. The script is given below. Also there is picture where I found…
0
votes
0 answers

NavMesh Baking during runtime on a procedurally generated mesh in Unity

I am making an open world low poly game that incorporates a procedurally generated map quite large in scale I am wondering how I could best approach baking my map. Is there any way to bake a mesh around the player in a certain radius and then bake…
0
votes
2 answers

What is causing this raycast click movement script using NavMeshAgent return a NullReferenceException?

When I run this script copied from a tutorial, the Unity console consistently returns a NullReferenceException: Object reference not set to an instance of an object. This occurs when I hit right click to tell the object to move. I have made sure…
0
votes
2 answers

Unity-3D, Enemy using Raycast and NavMesh keeps seeing me through walls

I've been trying to set an enemy on a patrol path while not chasing my player character. I want to use RayCast so that the enemy can spot the player and begin to chase the player. It functions as I intended. However, even when there's an obstacle or…
0
votes
1 answer

Unity NavmeshComponent (Unable to bake navmesh)

I'm pretty new to Unity and im working on a duo project with my friend. He is generating a city with L-system, with prefabs made in MagicaVoxel, and I'm trying to populate the city with pedestrians and make them walk randomly. I have the…
royalecsb
  • 1
  • 1
0
votes
1 answer

Unity NavMesh.CalculatePath does not work

I do not get the method NavMesh.CalculatePath working, not even after copying the original example from the Unity documentation page. https://docs.unity3d.com/ScriptReference/AI.NavMesh.CalculatePath.html I've added a debug output of the array…
Pinke Helga
  • 6,378
  • 2
  • 22
  • 42
0
votes
0 answers

Is there any way that will make the navmesh agent allways in pathpending

I bake my navmesh in runtime with a specific navmesh setting, and sometimes(not always), when I try setdestination to my own agent, the value of pathpending always returns true, resulting in that the agent is waiting for a path to navigate, and just…
0
votes
0 answers

Bug , the player rotates a bit when reaching hitPoint (Unity Engine)

Im facing a bug in Unity3D engine : I have built "click to move" system for my player character, it works fine and all the animation are working, but i have a little bug its when the player reach the hit point sometime it slightly rotates to a…
0
votes
0 answers

Unity, how to make NavMesh Agents climb obstacles from any point around it?

So I'm working on a game where I want my AI to be able to smoothly climb obstacles from any point around the obstacle but I'm having a hard time trying to figure out how to do this. I know I can use off mesh links to have enemies go on to obstacles…
The702Guy
  • 31
  • 2