h8man / NavMeshPlus

Unity NavMesh 2D Pathfinding
MIT License
1.79k stars 209 forks source link

Agent just disappears #149

Closed iseal56 closed 1 year ago

iseal56 commented 1 year ago

In scene view I see it fine, when I start the gaqme the agent disappears, though it can still move but just goes to the ground instantly, I am making a topdown view 3d game

h8man commented 1 year ago

if you making 3d game this package is not suited well. Regular AI.Navigation should work.

Also check this issue https://github.com/h8man/NavMeshPlus/issues/148

iseal56 commented 1 year ago

Ok, I fixed the texture thanks to issue #148, but is there a way I can get the way that it is going so I can set the rotation to be facing it? btw, I made a typo, it was meant to be a 2D top down game Also not sure if its is because of this but it brings up this error: image

iseal56 commented 1 year ago

Also is there a way to disable physics for the agent?

h8man commented 1 year ago

Yes, you can enable rotation AgentRotate2d.cs or AgentRotateSmooth2d.cs

Agent doesn't obey physics, it is part of NavMesh system. https://docs.unity3d.com/Manual/nav-MixingComponents.html