Questions tagged [navmesh]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
940 views

Unity navmeshagent and doors

I'm trying to make an agent patrol around a maze. The maze is proceduraly generated and consists of many rooms connected with doors. The problem occurs when the agent reaches a door. I wrote a script ...
0
votes
1answer
1k views

How to move NavMesh Agent by animation?

What's the best way to create a simple moving navmesh agent with animation? (e.g. a human enemy running to player) I have run animation that moves the enemy ...
3
votes
2answers
3k views

Unity Vector3 position inside collider

I am trying to create a "wander" action that will make my NPC walk to a random position. The catch is that the NPC should only go positions inside of a collider. I have a huge Sphere that has a ...
1
vote
1answer
59 views

Agents going to the same position

So more often than not I have a case where two agents get the same destination vector3. This causes some hiccups because they won't be able to get to their target because they block for one another. ...
1
vote
1answer
162 views

NavmeshAgent not to turn back

Imagine the blue part of this picture is streets and navmesh. the red object is a car with navmeshAgent. the green circles are the colliders set as triggered and they are the destination of the car. ...
0
votes
1answer
698 views

Unity3d turn based navmesh algorithm

I am developing a game in Unity3d. In this game, 2 teams will fight without any human interaction. The fight results must be always the same, if the same teams are the same. This way, I must ...
0
votes
1answer
719 views

Runtime NavMesh Builder source mesh combined mesh is skipped because it does not allow read access

I'm getting this error: Runtime NavMesh Builder source mesh combined mesh is skipped because it does not allow read access I checked all the models and it has the read permission. I also noticed,...
2
votes
2answers
1k views

Unity how to set Off mesh link speed

How can I set agent's speed on off mesh link? I want it to look like a jump, but now it looks like it was in slow motion.
1
vote
0answers
107 views

Finding point in NavMesh meeting criteria

I have build my own NavMesh representation, generation and path finding on it in c++ and it works very well so far. However i struggle archiving this seemingly easy task: I want to find a random ...
0
votes
1answer
3k views

Unity Nav Mesh instantiation Issue

I've been working on a wave-based zombie game for the past few months and all of the systems have been working perfectly - until I upgraded to the latest version of Unity. Since then, spawning a ...
4
votes
0answers
196 views

Is there an algorithm to construct lines (sets of grid points which are all connected) from an unsorted set of grid points?

I have a 2d square grid used for pathfinding that I wish to convert into a navigation mesh. My idea is to pluck out all of the nodes that are on the edge of walkable space, simplify the amount of ...
0
votes
0answers
154 views

surface.Bake(); no such command

Regarding the code shown in this video at 13:50: When I try: surface = GetComponent (); surface.Bake(); I am getting the following error message: UnityEngine.AI....
1
vote
1answer
2k views

What does NavMesh.AllAreas specify in Unity?

I'm trying to calculate the path to a point in my game using NavMesh.CalculatePath, it takes an argument NavMesh.AllAreas. I read the Unity Manual and couldn't clearly understand what it meant.
0
votes
1answer
29 views

Unity using different NaveMesh for the same position

I have differents environments (they are on the same position, and they are prefab) , each environment have differents obstacles. The problem comes with the navMesh. What I want is to have one ...
0
votes
1answer
95 views

Tank avoid other objects?

My tanks working good except one thing, they not avoid each other in good way. they not generate the path to find new good position. My tank follow it own agent position and direction. I add ...
0
votes
1answer
2k views

How to draw a NavMesh Path to a destination without traversing the path in Unity3d?

I have a set of pre-determined destinations. When the user chooses any one of those destinations, the path to the destination should be drawn, similiar to google maps. I am trying to do this in unity, ...
1
vote
2answers
2k views

Visualizing NavMesh to Camera

When Unity builds a NavMesh, you can see it in the scene view if you have the Navigation window open and select "Show NavMesh" in the Navmesh Display box. I'd like to use the exact same overlay in a ...
0
votes
1answer
347 views

Nav Mesh Agent and obstacles

I have a scene with buildings and a Nav Mesh Agent. Should all the buildings contain the Nav Mesh Agent obstacle component, or them having colliders and being higher than agents step height is enough ...
0
votes
0answers
198 views

Agent taking different paths?

I don't know of this is possible or not. I was following Unity - The NavMesh Agent tutorial. What I'm thinking on how to make the agent take's different path ? example, if i have two agents, how to ...
1
vote
0answers
360 views

Simple Stupid Funnel Algorithm (SSFA) for 3D Navigation

tl;dr I need an algorithm similar to SSFA except for portals with 4 vertices (or n vertices if an algorithm like that exists). I'm working on a game that requires pathfinding in 3 dimensions. By this ...
1
vote
0answers
341 views

remove sudden upward & downward jerk from camera

I have a scene with low poly assets & NavMesh enabled for character navigation. When player climbs the bridge there's a sudden upward jerk in camera. Also, when the player comes down, there's a ...
3
votes
2answers
8k views

How to implement jump in NavMesh?

I want my NavMeshAgent to jump when Space key is hit. The Script (in Unityscript) I tried is : ...
0
votes
2answers
628 views

Weird Animation Behavior in Unity

I discovered a weird animation bug and have no idea how to solve it. Below you find the script I attached to my humanoid character. ...
1
vote
0answers
600 views

Get random point on NavMesh async

I am trying to spawn some entities on a navmesh at runtime. The entities need to spawn at a random point. Right now i use the following to get a random point: ...
2
votes
1answer
381 views

Prevent navmesh blocking

I'm writing a tower defense game in Unity, inspired by Desktop Tower Defense. Creeps spawn on one side of the screen, and if they make it to the opposite side, the player takes damage. The board ...
0
votes
1answer
1k views

NavMesh moving is not smooth

I have two car in game one of them is cop that chase player, i put a NavMesh on cop with these values: when the cop get close to player (player speed is 10 ) , movement will go jittery and not smooth....
1
vote
1answer
2k views

How to increase vertical Nav Mesh detection for AI Actors? Using Default Query Extent?

For my swimming AI, I wish to use a Nav Mesh, so they may avoid obstacles and swim up and down - preferably. I figured I should try to solve this with a nav mesh, since UE4 has kindly implemented it ...
2
votes
2answers
1k views

Enemies are penetrating in each other when following player

As you can see the image my enemy (when following my player), penetrate each other. How can i avoid it? I am using NevMeshagent to follow the player. ...
1
vote
0answers
308 views

Is Unity 5.6 NavMesh Data Available to Gizmos/Editor?

I have a script from Dungeon Architect that basically draws Gizmo lines along all connections between neighboring waypoints, which is nice. However, I'd like to draw a secondary line the follow the ...
2
votes
3answers
6k views

Why are multiple Nav Mesh Agents jittery when the target is inaccessible?

I have a simple scene. Most of the land is flat, except for three raised cylindrical platforms coming up from the ground. I have several enemies with Nav Mesh Agent components attached, with their ...
0
votes
2answers
405 views

Infinite plane with Unity Navmesh agent

guys! I would like to create a map where the player can never reach the end while using the awesome navmesh agent from unity. Is it achievable? I'm thinking of making a treadmill kind of logic with ...
1
vote
0answers
321 views

Get all OffMeshLink objects in Unity

What I'm trying to do is to make an edit-mode script that gets all off-mesh links and makes some of them bi-directional(depends whether a jump is possible). My (obvious) attempt was: ...
0
votes
2answers
4k views

How do I find an accurate current speed of a navmesh agent?

So I have a blendtree of an idle/walk/run animation of a character (the navmesh agent). I want to use a normalised float of the speed of the navmesh agent to control the blend of the animation cycles. ...
1
vote
1answer
4k views

NavMesh.CalculatePath returns invalid path Unity3D

I am trying to get coordinates for path from source to destination object using NavMesh. NavMesh.CalculatePath() is only working ...
2
votes
1answer
2k views

UE4 Navmesh precision

I'm trying to make my very tiny man pathfind his way through a map of a school but the navmash won't recognize some of the hallways cause they are very narrow like this. So as you can see the man ...
0
votes
1answer
61 views

Moving autonomous robot form one location to another based on array

I have a 3D model of a house, and I want an autonomous robot to move from 1 object in this house to the next one. I have it moving to the first, but it won't move to the second one. This is my code: <...
0
votes
1answer
956 views

Unity NavMesh Step Issue

I have a scene in my game that takes place in a subway. I created a NavMesh so I can easily have the enemies chase the player. There seems to be a problem though as them enemies sometimes have a ...
2
votes
2answers
2k views

Dynamic navigation mesh generation algorithm

I'm working on a 2D game (top down / zelda like view) I'm struggling with navigation mesh generation, in complex scenarios my homemade algorithm is lost and too slow... I would really love to see a ...
0
votes
1answer
513 views

Unity5 - Create navmesh for a random generated environment

I am following this tutorial to create a game with random generated mazes: http://catlikecoding.com/unity/tutorials/maze/ I want to add some monsters to roam ...
12
votes
4answers
3k views

How would one generate a Navigation Grid for a 3D world?

I am attempting to find a solution to this problem. I'm trying to build a navigation mesh in the format of a grid of vertices locked to x, y floored coordinates in the shape of squares for 3D space. ...
6
votes
5answers
28k views

Is it possible to use nav-mesh in 2d game in Unity?

I'm working on game that needs navigation and obstacle avoidance. I've used nav-mesh on 3d project before but now I'm trying to use it in 2d sprite game but it seems like it doesn't work. I want to ...
6
votes
1answer
1k views

What is best method for 2D pathfinding in procedural world?

I have been researching path-finding for 2D games and would like to create a system that allows A* to perform as best as possible over a near infinite world. This system is intended to manage not only ...
-2
votes
1answer
2k views

NavMeshAgent in unity not working

I am making a game in unity and it is throwing the error "Failed to create agent because there is no valid NavMesh" and i don't know what the problem is. ...
2
votes
1answer
947 views

NavMesh.SamplePosition() fails after rebaking NavMesh?

So today I was refurbishing a scene when this happened. After baking a new Navmesh the SamplePosition() returned only infinity. I tried a lot of things out but eventually went back to an older version ...
1
vote
0answers
48 views

Getting the polygon footprint from a map

I'm trying to implement the Explicit Corridors method to generate a navmesh for a large city. The algorithm takes a list of convex polygons representing the obstacles as input. The paper only ...
-1
votes
1answer
3k views

Unity AddExplosionForce to a Navmeshagent

I have a NavMesh agent and I would like forces to be applied to it during an explosion. Currently the NavMesh agent isn't interacting with the exploding object. The explosion occurs and agent takes ...
2
votes
1answer
413 views

Add navigation obstacles during runtime lags

Please watch this short video. http://screencast.com/t/vw2a5FdOOT It shows the problem. It's using the build in Unity navigation and followed the guide to build the demo in the video. Everytime I ...
4
votes
1answer
206 views

Unity3D Pathfinder with Crossings

I'm trying to bring traffic on my street system. The main problem for me are the different lanes and crossings and to make it complete the different types of paths. I've tried a bit with the ...
2
votes
1answer
810 views

Find shortest path (quickly) on the surface of a 3d model?

Imagine this scenario: we have a 3d model, for instance a doughnut, apple or an orange (possibly something more complex). There's an insect (let's say an ant) on the surface of that food item. Now ...
7
votes
2answers
3k views

What is the most appropriate path-finding solution for a very large proceduraly generated environment?

I have been reading quite a bit in order to make the following choice: which path-finding solution should one implement in a game where the world proceduraly generated, of really large dimensions? ...