h8man / NavMeshPlus

Unity NavMesh 2D Pathfinding
MIT License
1.82k stars 210 forks source link

NavMesh Agent apply a negative Y velocity on the RigidBody #133

Closed UryonBlade closed 3 months ago

UryonBlade commented 1 year ago

Hi, I added NavMeshPlus to my unity 2D project and I added to my enemies the navmesh agent to make them move.

It seems to work fine at the start but if I play my game for longer time, for some reason my enemies have a negative Y force applied. I tried to remove navmesh and this behaviour disappear

Am I doing something wrong?

h8man commented 1 year ago

@UryonBlade Hello,

NavMeshPlus uses Unity "native" components. Your question is related to Unity NavMesh Agent and how it works with Physics. In general NavMesh and Physics doesn't work well without tweaks

https://docs.unity3d.com/Manual/nav-MixingComponents.html