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.
navmesh
236
questions
1
vote
1
answer
34
views
Enemy teleporting between across the y axis, when it's under me while I'm on a platform, it teleports up the platform
I don't know if it's something with the AI, the navmesh, or maybe a missing nav component but the enemy I made instantly teleports to me when I'm above it instead of simply going up the stairs. It is ...
0
votes
2
answers
42
views
How to use a prefab gameobject clone (Character Selection) as a player's target for a Navmesh Agent? How Navmesh Agent keep following the player
I'm new to Unity. I also new to Stackoverflow. Nice to meet you all!
I am using Unity version 2021.3 LTS
Here the details of my problem :
I still haven't found how to make navmesh agent to detect and ...
0
votes
0
answers
36
views
How do I teleport camera without teleporting the navmesh with it in aframe?
I want to know how I teleport the camera without teleporting the nav-mesh
I'm making a maze game with clickable portals where it teleports my camera to another portal, BUT it also teleports the nav-...
1
vote
0
answers
93
views
Unity NavMesh.CalculatePath creates a path that jumps around when moving an obstacle
I am working on a tower defense deck building game, there is a path that leads the enemies from their point of origin to their target, I have a line renderer that shows it on the NavMeshSurface, when ...
0
votes
0
answers
53
views
Unity navmesh manages to calculate path in Editor but fails when deployed on Android device
I'm working on a game where characters are controlled using a nav mesh agent.
For month I did not have any issues with the nav mesh, but I recently have started to grow the scene and having trouble ...
1
vote
0
answers
32
views
Unity Nav Mesh Agent Local Avoidance
I'm trying to make a RTS game with Unity, trying out the nav mesh agent. Basically when an agent calculates it's path, it does not consider other agents so if they want to reach the same destination ...
1
vote
0
answers
24
views
Trouble with Enemy Behavior in Unity Using NavMeshAgent and Physics OverlapBox
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class myScript : MonoBehaviour
{
NavMeshAgent enemy;
public Transform target; // ...
1
vote
1
answer
27
views
Unity "type or namespace definition, or end-of-file expected." How to fix?
C#. Editor version:2021.3.16f1
I wanted to make a script where "Capsule" follows "PlayerArmature". I used this tutorial: YouTube and used this tutorial for the navmesh: YouTube
But ...
1
vote
1
answer
104
views
How to stop Unity NavMesh Agent for 2 seconds, then resume walking at normal speed
I want the NavMesh agent in Unity to stop walking once my Attack() method is called. Then, after a couple of seconds, I want the AI to start walking again at its normal walking speed.
My code:
using ...
1
vote
1
answer
47
views
How would i use a prefab gameobject clone as a player target for a navmesh agent in unity version 2022.3f
I need a solution to my problem. i need a way for my navmesh_agent. to detect and follow a prefab clone instead of a gameobject already inside of the scene. to give some intel i am trying to add ...
0
votes
1
answer
56
views
Unity: Navmesh is baking incorrectly
I recently ran into an issue where my navmesh is baking incorrectly.(see pic)
It was working fine until I set it up on a terrain instead of on a box.
I also added roughly 50-200 static game objects ...
0
votes
0
answers
11
views
How do I make navmeshagent follow the most nearby player? (photon pun 2)
I am trying to make a multiplayer game where a monster chases you in a generated maze. but there is a problem. I am trying to make to monster follow the closest player but it just doesn't seem to work....
0
votes
0
answers
93
views
Unity AI.Navigation NaveMeshSurface.BuildNavMesh() produces bad results
I am using the AI.Navigation system on the following scene :
before play mode
Since it's a scene with element which will be deleted dynamically, I'm not baking the scene beforehand but call once
Floor....
0
votes
1
answer
73
views
How to make navmesh agent smarter in unity 3D?
I want to create zombie enemies that chases the player, but the thing is when an enemy hit an obstacle like a wall it does not go around it, How can I make it navigate through obstacles ? Do I need to ...
0
votes
0
answers
47
views
Unity nav mesh agent twitches at a certain direction
I have a scene with an agent and a player. The agent follows the player, while the main camera also follows the player and the player moves by joystick on the screen. When the agent follows the player ...