How to stop NavMeshAgent rotation?
I'm trying get control over my navmeshagent's rotation but it won't let me stop it. I've set angular speed to 0 and set updateRotation to false in my script but it still constantly rotates towards the...
View ArticleHow to adjust the road?
Hi, I want the bigger truck you have seen can let cross the bridge but I cant adjust navmesh agent like I wanted way Can you help me?![alt text][1] [1]: /storage/temp/202618-unitynavmesh.png
View ArticleArea underneath runwalkble object is walkable
Hey guys, I'm baking a plane as my navmesh area, with two big boxes as obstacles, I marked the boxes as unwalkable and baked, on the first sight things seems fine, but after checking the problem I'm...
View ArticleNavmesh agent not working properly
Hello everyone. I have a problem with Navmesh agent. When I start the game, out of nowhere, my agent starts to glitch then moves normally, then glitches, then moves normally and so on. I'm not sure if...
View ArticleHow do i make my navmesh agent face the player when it reaches stopping...
This is my first time asking question on unity answers. Forgive me if i did something wrong. My navmesh agent chases player around and starts attacking when close. But when i walk to its back, agent...
View ArticleNavAgent setting Destination values to a another vector 3 location inconsistent
I'm trying to make the player only able to enter a settlement whenever they click on its' collider directly with a raycast, the player is able to go through without entering it by mistake by comparing...
View ArticleCan anyone explain this blue circle around my navmesh agent and why it is not...
I have a robot scorpion that I'm trying to have patrol and then chase my player. I had it working at one point, but that it stopped working. I tried disabling all my components except a the script and...
View ArticleQuick Snappy Movement with NavAgent
I currently have a navagent moving toward the mouse pointer position. The rotation is handled on a separate script to allow snappier rotation, but even still its movement drifts a lot. Especially if...
View ArticleNavmeshagent Return to Start Position
I'm desperate. I'm using NavMeshPro for 2D and trying to have the agent follow the target and once the target is out of range go back to the starting point. For the starting point I created an empty...
View ArticleNavMesh not moving to it's destination.
So, as the title says, i've been trying to get a navmesh agent to follow an object (I followed this tutotial: https://www.youtube.com/watch?v=atCOd4o7tG4&ab_channel=CodeMonkey) But the object won't...
View ArticleOffmesh Links only work for Humanoid Agents
Hey all. I am using the advanced navmesh components downloaded from unitys github and Unity 2021.3.7f1. Im trying to make a crawling agent type that can use offmesh links and narrow tunnels only...
View Articlehow to make all NPCs with NavMeshAgent Compoent Avoid Player's gameobject...
In my project player's gameobject has it's own script to control motion. I notice that if I attach the NavMeshAgent to player's game over always get some unexpected motions. So I disabled it. Is there...
View ArticleCalculating Navmesh Escape Route Help
I have a simple scenario but the solution is proving illusive for some reason. I have a series of escape Vector3 Points around my map. When the Player gets to within a certain distance of an enemy I...
View ArticleHow to edit NavMesh
I am creating enemy AI in my game using a NavMeshAgent. However when I bake it, the area underneath the buildings in my game are also being baked. (These buildings have a box collider on) I have tried...
View ArticleCan you think of a good way to mimic the behavior of NavAgent.destination?
Okay so, for convoluted reasons, I'm not using NavAgents for my path finding. I want to control Enemy AI with my own scripts. I am however using NavMesh and CalculatePath() for path finding, and then I...
View ArticleNavmesh Agent not moving right
I am trying to make a nav mesh agent go to a point, and when that point changes, head to that new location. At first it wouldn’t move at all if the point was too far, so I set up a system to target a...
View ArticleNavMeshAgent npc starts flying when I enter game scene
Regardless![alt text][1] of what I do, my NavMesh Agent either keeps going up or down when I change the Base Offset. If I make it too low the npc starts going into the ground and if I make it too high...
View ArticleNavmesh and AI climbing ladder
I want my Navmesh agent to follow through path and if ladder is seen then climb it and end the journey. Already did Navmesh link to connect between two mesh. But problem is it can't just get the next...
View ArticleUnity NavMesh Update Data Without Baking
Hey everyone in my game there is some peasents walking around in a landpiece. Player is able to unlock new lands(as you can guess it is a arcade idle game). When player unlocks a land i want to make my...
View ArticleI have a nav mash rotation problem,NavMash rotation problem
I have a gameObject that has nav mash agent on it. When I run the game destination works fine, but rotation is the problem. Like it goes to destination but rotated to side , not default rotation. Here'...
View ArticleNavMeshAgent for Animal
I have a NavMeshAgent for a animal. The problem is that it only punctual avoid being outside of the NavMesh, so my animal glitches in walls. Is there any solution to make the Radius of the NavMeshAgent...
View ArticleObject is affected by animation that isn't playing
I am making a game where zombies climb out of windows to spawn. However, when I put the climb animation in the animator, even when it isn't used AT ALL, it still affects the other animations. The other...
View ArticleShaking Companion
My companion seems to shake when i hit him or he hits me. Do you guys know any other to this? (ps my code) public class bobcore : MonoBehaviour { public Transform target; public NavMeshAgent nav; //...
View ArticleHello, so i got a little problem with my NavMesh Agent witch is that NavMesh...
![alt text][1] [1]: /storage/temp/206599-screenshot-57.png
View ArticleHow to make a game like Tank trouble
Hi, I'm new to Unity and want to learn how to make a game like **tank trouble** on **mobile**. So far I have managed to make a **controller** for the tank (mainly) and the movement of the...
View ArticleNavmesh agent returns path with corners in wrong order
I am using a navmesh with agents to calculate paths in fairly large map. I am not using the agent's movement, just SetDestination and then just getting the path's info to move the entities myself. It...
View ArticleHow to make enemy move through walls?
I am working on an enemy that should only move when the player is not looking at it. I tried using the Renderer.isVisible and everything works but if I look in the direction of the enemy through a wall...
View ArticleNav Mesh Agent pauses each time I update its destination?
Hello, I'm having an issue in my game where my Nav Mesh Agent pauses every time I update its position. Here is my code for how my Nav Mesh Agent updates the target it's pursuing: public void...
View ArticleHow to make enemy move through walls?
I am working on an enemy that should only move when the player is not looking at it. I tried using the Renderer.isVisible and everything works but if I look in the direction of the enemy through a wall...
View ArticleNavMesh at Runtime?
Is there a way to build the navmesh at runtime? I'm making a 3D game with building mechanics, but I can't have the navmesh agents going through walls and such. I am aware there's an asset for this-...
View Article