Comments (8)
Hello,
NavMeshPlus is making proxies for Unitity's NavNesh System on "bake" and does not affect Agent or any calls to NavMesh.
Make sure that Agent is on NavMesh, that their Z values are equal. Also take a look at demo project for any tips https://github.com/h8man/RedHotSweetPepper
from navmeshplus.
Hello,
NavMeshPlus is making proxies for Unitity's NavNesh System on "bake" and does not affect Agent or any calls to NavMesh.
Make sure that Agent is on NavMesh, that their Z values are equal. Also take a look at demo project for any tips https://github.com/h8man/RedHotSweetPepper
Thanks for the quick reply.
I will check the Z values now, but they all appear to be the same value, unless the tilemap has done something (by that I mean I did something wrong).
After further testing two interesting things, I realised:
- If the agent that is stuck has another agent walk into it, it will start walking again.
- The agent that is stuck its velocity goes to 0 and gets stuck at that, so a little workaround I have found is that I can add a tiny amount to its velocity and round to nearest int and it sorts itself out nicely.
Wondering if those two things change anything? :)
from navmeshplus.
Hello,
NavMeshPlus is making proxies for Unitity's NavNesh System on "bake" and does not affect Agent or any calls to NavMesh.
Make sure that Agent is on NavMesh, that their Z values are equal. Also take a look at demo project for any tips https://github.com/h8man/RedHotSweetPepper
Also sorry, I just checked your example scene.
With using a tilemap is there any issue getting the navmesh to check its children and get physics colliders rather than render meshes?
from navmeshplus.
Here is sample for non-tile-mapped scene https://github.com/h8man/RedHotSweetPepper/blob/master/Assets/Scenes/SampleSceneNoTileMap.unity
And here for physics collider
https://github.com/h8man/RedHotSweetPepper/blob/master/Assets/Scenes/SampleSceneCollider2d.unity
from navmeshplus.
Here is sample for non-tile-mapped scene https://github.com/h8man/RedHotSweetPepper/blob/master/Assets/Scenes/SampleSceneNoTileMap.unity
And here for physics collider
https://github.com/h8man/RedHotSweetPepper/blob/master/Assets/Scenes/SampleSceneCollider2d.unity
Thanks will check them out, I have kinda solved the issue, so I will close this now, thanks again for the help
from navmeshplus.
I've come across nearly the exact same issue and the solution mentioned here fixed it.
For me it seems to occur when you set a destination, and the NavAgent's X position matches that of the destination's X position. If I call SetDestination multiple times with the same target I get this jittery movement.
Moving the NavAgent a tad to the left/right (by setting it's velocity) gets it moving properly which is very odd.
from navmeshplus.
I've come across nearly the exact same issue and the solution mentioned here fixed it.
For me it seems to occur when you set a destination, and the NavAgent's X position matches that of the destination's X position. If I call SetDestination multiple times with the same target I get this jittery movement.
Moving the NavAgent a tad to the left/right (by setting it's velocity) gets it moving properly which is very odd.
Been a while since I touched the project (on hold...indefinitely 😂) but glad it worked! It's little "hacky" things like that which make me love dev (and also hate it)
from navmeshplus.
I've come across nearly the exact same issue and the solution mentioned here fixed it.
For me it seems to occur when you set a destination, and the NavAgent's X position matches that of the destination's X position. If I call SetDestination multiple times with the same target I get this jittery movement.
Moving the NavAgent a tad to the left/right (by setting it's velocity) gets it moving properly which is very odd.Been a while since I touched the project (on hold...indefinitely 😂) but glad it worked! It's little "hacky" things like that which make me love dev (and also hate it)
It is what it is. Out of the huge suite of tools & packages Unity and other users offer, there's bound to be one or two things that don't work correctly.
I just wanted to leave a comment explaining the conditions needed to get (and bypass) this bug.
from navmeshplus.
Related Issues (20)
- [BUG] NavMeshAgent stuck moving vertically HOT 2
- How to prevent huge monsters from getting stuck? HOT 2
- Does this work with Prefabs? HOT 2
- 2D NavMeshAgent gets stuck trying to move straight up or down HOT 2
- CalculatePath always return PathInvalid. HOT 4
- Overlapping Walkable on top of Obstacle won't work.. HOT 4
- netcode and navmeshplus HOT 1
- How i can re-bake in the game mode.
- NavMeshCollecSources2d script does not exist HOT 2
- If there is no tile, don't bake that area
- Upgrading to 2022 HOT 5
- NavMeshAgent.SetDestination does not work HOT 3
- Same tilemap can't have two different surfaces HOT 3
- Everytime I load unity scripts missing HOT 1
- Does not work properly with custom cell size HOT 2
- [Bug] NavigationModifierTilemap missing AffectedAgents field HOT 2
- Isometic grid issues doesn't fit HOT 4
- Make the 2D Agent face in the direction of movement? HOT 2
- Enemy not moving after git push and pull in other computer HOT 2
- NavMeshPlus baking walkable area weirdly HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from navmeshplus.