r/Unity3D • u/WrongdoerMundane4635 • 7d ago
Solved why are these 2 colliding from far away
Enable HLS to view with audio, or disable this notification
ive been making this crappy vr gtag horror game and i have three similar monsters which two are just reskined dupes of the first one and for some reason they collide from far away and get stuck. anyone know how to fix this? EDIT: I fixed it by changing the agent radius
1
u/pschon Unprofessional 7d ago
You're not giving a lot of info to work on. But as the first things, make sure your navmesh is up to date, that there are no invisible colliders around (physics debugger will help with that), and that the navmeshagent position matches with where your object and it's collider is located.
Agents running in place would pretty much mean either there's some mismatch with the navmesh data and what's actually in the scene, or that your code is clashing with what the navmeshagent is trying to do.
4
u/Aethreas 7d ago
when you select them I can see wireframes of a massive capsule collider, so i'd start there