I have an action that makes my player walk to a marker that changes position on certain moments, and in some edge cases the marker ends up inside a collider. When this happens, the character gets stuck there in walking animation forever.
Does anyone know if there's a way to just tell it to stop if it runs into a collider? I don't want it to try to find a new path or anything, just stop right there. It doesn't have to be instant either, it's ok if it's evident that it walks in place for a sec before stopping.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Is this for a 3D game?
If you add a NavMesh Obstacle to the collider and opt to have it Carve the NavMesh, then it will update the NavMesh and cause the Player to only go as far as they can.