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

Avoiding dead ends using A* algorithm

I am using A* algorithm to find the shortest path between a box and a movable character in a navmesh graph. The box is meant to follow the character. If the character is behind an obstacle or room(for example), then box would travel via the shortest…
user3124361
  • 471
  • 5
  • 21
1
vote
0 answers

KVO or other property observing pattern in unity 3D

I am trying to call a function when one of the properties on my object is changed. Other than constantly polling for the property which is inefficient not to mention a hack at best, I can't seem to find a way to do so using C# scripts in Unity…
0
votes
0 answers

Spawn enemies out of sight on top of navmesh

I'm trying to spawn enemies out of camera sight, as long as they are on top of a navmesh. This is the code, but for the moment it does nothing. What am I getting wrong? using System.Collections; using System.Collections.Generic; using…
0
votes
0 answers

Unity NavMesh obstacles are not working with Box shape

My NavMesh Obstacles work only with capsule shapes. If i use box shape, it does not carve a hole in the NavMesh. I need a horizontal box for some obstacles and with capsules i cannot achieve that. I am confused why just changing the shape affects…
mukul
  • 171
  • 1
  • 15
0
votes
0 answers

Unity NavMeshBuilder not working with sprite sheets

does Navigation Surface work with spritesheets? I am using NGUI sprites for the NavMesh agent and i get an error on baking '"SetDestination" can only be called on an active agent that has been placed on a NavMesh'. If i switch to Sprite Renderer,…
mukul
  • 171
  • 1
  • 15
0
votes
0 answers

Navmesh surface doesn't bake

I have tried everything I could google. my gizmo is turned on, show navmesh under ai navigation is checked, I switched to navigation tab, navmesh surface is attached to my background. I deleted and reloaded my scene, I don't know what else to check…
darres
  • 53
  • 5
0
votes
0 answers

Are there any formal algorithms for generating off mesh links between navmesh chunks for NPC characters?

I’m investigating different approaches for generating off mesh links between pieces of navmesh that allow NPC character to move around the game world. Are there any formal algorithms for generating these links? For example, is there any information…
0
votes
0 answers

NavMesh Agent Does Not Touch Ground

I created an algorithm that creates a different ground every time the game starts, so I bake with NavMesh Surface at runtime (only once when the game started). The problem is navmesh agent do not touch the ground as it must be. its y position is set…
New One
  • 7
  • 3
0
votes
1 answer

Unity error when placing a random movement script on a sphere

I believe the NavMesh is not being placed in coordination with the sphere object would be my guess. This is the script the start of the script that I have on the sphere. NavMeshAgent navMeshAgent; public float timeForNewPath; bool…
0
votes
0 answers

The Colliders of Navmesh Agents are Slipping

I have a npc prefab to be spawned a certain amount from it at the beggining of the game. They chase player, patrol, and escape from the player depending on the situation. As far as I can observe only when they escape from the player, the colliders…
0
votes
0 answers

possible to edit the movement of navmeshagent

I am fiddling with my first pathfinding behaviour. I am using a navmesh and the built in NavMeshAgent and it works great so far! But I want the agent to take a wider, curved turn (because the agent-object is a vehicle) [Check the illustration below…
0
votes
0 answers

A-frame Extras Agent Falls Through Navmesh

Well, here's a good one for you - Using A-frame Extras Pathfinding and working on building patrolling agents using waypoints. HOWEVER, the characters (especially the random patrol lady) fall through the navmesh and get stuck. The guy is following…
James
  • 11
  • 1
0
votes
0 answers

Unity, Mesh zone breaking phenomenon when 'Agent Radius' of 'Navigation' is changed

If you use a number other than 0.3 for 'Agent Radius' in 'Navigation', the mesh area is broken as shown in the picture below. The bottom on which the mesh is created is flat with 'plane'. However, it breaks. enter image description here
KwangWon
  • 1
  • 2
0
votes
1 answer

In Unity, how to have a navmesh that dynamically update the location of areas

I am trying to make a 2d top-down game where the player moves obstacles in order to block enemy AI from advancing, but I need the obstacles to only block certain types of enemies. I've tried using Unity obstacles but they carve through every navmesh…
TitouanGL
  • 3
  • 1
0
votes
0 answers

Why do my enemies with a Nav Mesh Agent and Rigidbodies push underneath my player with a Character Controller?

I'm using a character controller to manipulate the player in my game, and I have two enemies that use Nav Mesh Agents. When the player is within the enemies radius, the enemy will chase the player, approach it, and attack it. While these are all…