Questions tagged [navmesh]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

Querying Navmesh with ECS

Has anyone had any luck with querying the baked Navmesh with ECS? Or, rather, with first converting a full map to Entities and Components (or vice versa), and then using the Navmesh for unit ...
-2
votes
1answer
29 views

How can a NamMeshAgent be configured to always look towards its next path position, but never move there?

I'd like to have something like an on-screen panel that appears in the direction that you are supposed to go. The panel is a NamMeshAgent with a speed of 0. I was hoping something like this would ...
0
votes
1answer
31 views

NavMesh - LoS and “Containing”

For a gameserver/backend, I have a navmesh for "walkable" areas in form of points/triangles. Now I want to check every gametick if the client is still in a legit place and if he shots/casts a spell, ...
0
votes
2answers
54 views

How to make specific paths in UE4?

I have a project where I have 1 character (playable) and 2 NPC's (AI). The NPC's are programmed to meet 2 target points. Below is an image to facilitate understanding: As you can see, this green ...
0
votes
2answers
30 views

The 'speed' value of the Nav Mesh Agent component does not seem to affect speed at all (Unity3D/C#)

The speed value of the Nav Mesh Agent component doesn't seem to have any effect whatsoever on the speed of my game object. Actually none of the motion values seem to have any effect. I've attached ...
1
vote
1answer
46 views

Spawning large numbers of navmeshagents causes them to jump position

Cross posted on StackOverflow I'm making a tower defense style game in 3D using Unity. I'm experiencing a frustrating issue with spawning large numbers of characters in an area of navmesh where if I ...
1
vote
1answer
149 views

Line of Sight Check Theta* Algorithm

I am looking at implementing the Theta* algorithm in a 2D NavMesh. I have A* working, and I need to add a line of sight check to turn it into Theta*, this seems relatively easy in a uniform grid but a ...
1
vote
1answer
42 views

Is there a way to automatically group tiles in a A* pathfinding grid to find the largest areas?

I'm making an RTS game using html canvas. I've made a program that randomly generates levels in order to test my pathfinding script. it divides the pathable blocks into squares so that you can apply A*...
1
vote
0answers
83 views

Is there an established way to create a 2D XY NavMesh in Unity?

Specifically, one in the empty space between colliders, rather than on an XZ plane (more or less) over the surface of a collider? Specifically this is because I have a drone, in a current project, ...
0
votes
0answers
126 views

how to make AI do jump on navigation mesh system?

hi :D i'm currently using unreal for make a sand-box game for learning purpose. and due to the unique attribute of sand-box game, i am looking for how AI move naturally on map (which changes so often)...
3
votes
0answers
85 views

In unity, making a navmesh for a tiny planet?

I'm trying to build a scene in a small planet, and baking will always give me the result on the half top of the planet. But what I want is to create a navmesh all around the small planet. I am ...
0
votes
2answers
715 views

Unity NavMesh pathfinding using Job System

I'm trying to write a system where I can run each enemy's NavMesh pathfinding in parallel, using Job System. The problem I'm having is that I can't pass the NavMesh agent argument as it's a reference ...
0
votes
0answers
111 views

How can I set the remaining distance of the nav agent?

I have an issue with the nav agent in my game. That I am using the remaining distance to determine the next state of the AI. When the navagent is first given a destination it uses the previous ...
1
vote
1answer
61 views

Unity, NavMeshAgent SetDestination acts funny

I had a scene set as the following picture. And a NavMesh baked as the following picture. But my "player" (The left-bottom corner sphere) don't go where I want it want to go! Test vedio Source ...
1
vote
1answer
60 views

(Unity) what happens if i get a transform.position of a nested object

Okay so here is the example You have a plane at position 0,0,0 with a scale 15,1,15 (for demonstration) Now you have a parent ...
0
votes
1answer
159 views

Generating nav meshes from tile based map (2D)

I'm working on a pathfinder for a MMORPG game, it's not mine; I'm RE it, now I need to create a pathfinder for monsters. But I figured that the client uses tiles for it's pathfinder (for players). ...
0
votes
1answer
250 views

Player with navmeshagent keeps moving back to the last mouse position clicked

On my FPSController I have two scripts, Player Controller and Agent Controller. Player Controller is for using the keys WSAD for moving the player around. Agent Controller uses a NavMeshAgent to ...
0
votes
1answer
65 views

Why some of the agents are keep staying in the waypoint and not continue to the next waypoint/s?

In the screenshot group of 4 agents (in red) are staying on the waypoint(blue) and they just rotating on the waypoint. The other agents keep moving the waypoints. I'm creating waypoints and agents (...
0
votes
2answers
163 views

(unity3d) Raycast Tags: Object reference not set to an instance of an object not working!

Here is the code I have written for an AI: ...
0
votes
1answer
37 views

Player area in navmesh?

In my game, If i click on terrain my soldier goes there. In my terrain there is no place without a navmesh. So, I want to make area where player moves his soldiers on it. If he clicks outside this ...
1
vote
1answer
107 views

NavMesh - Changing Mesh by Jumping upwards

I have been playing around with the NavMesh and I have seen that there are different situations where an agent has to change meshes. When it works: Everything seems to work alright with links, if I ...
1
vote
2answers
211 views

Stop character from moving after reach his destination?

my script is for character moving to the certain point on the terrain. To get this point I have to use mouse. When I click on the terrain, my character goes there. Now, If he reach his point and ...
0
votes
1answer
47 views

Agent hesitate when choose direction?

I have script for my agent enemy where he should choose one random point and goes to it. But what he did is hesitating ! ...
1
vote
0answers
75 views

Terrain Navmesh build, rebuild smaller pieces of the bigger navmesh terrain. UNITY

when the area is very big and AI characters are required to walk a larger distance, it would be beneficial to have the large navmesh ready for finding a path. when we change the height of the terrain ...
0
votes
1answer
139 views

Unity 2018 NavmeshBuilder.BuildNavMeshAsync

I am trying to test out the new Navmesh tools as of Unity 2018.1 So i have a simple scene with a plane: Then i have the following script: ...
1
vote
2answers
105 views

What graph Search algorithm (s) that can simulate the behaviour of a human searching in a forest

We are building a game , where a group of humans(AI agents) have to wander seperatly throughout the forest looking for a collectable item. The forest is represented as a 2d graph with the item ...
0
votes
1answer
299 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
513 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 ...
1
vote
2answers
1k 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
50 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
75 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
449 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
199 views

Problem with Unity NavMesh tools

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,...
1
vote
2answers
373 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
69 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
2k 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 ...
3
votes
0answers
115 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
131 views

surface.Bake(); no such command

(re: https://www.youtube.com/watch?v=n-RXnDGE72M∈dex=12&list=PL4AZfZ_v6LZNn6LPUbYFyKJNlssdzlu9K at 13 mins 50 secs) When I try: surface = GetComponent (); surface.Bake(); I am getting an error ...
1
vote
1answer
725 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
20 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
81 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
1k 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, ...
0
votes
1answer
908 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
267 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
126 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
265 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
238 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
4k 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
286 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
404 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: ...