how can i make my player stop in front of objects with collision cubes.He is not walking through the object but walks on in front of the object on the same place.Would be great if someone could help me.Thanks.
yes i use Unity Navigation and Point and Click.I tried to solve the problem but my Player still doesnt stop in front of walls.Collision detection works because my player doesnt walk through the wall.He is just not stopping in front of the wall.
When using point and click movement, you should rely entirely on your NavMesh for movement - collisions and CollisionCubes should be left alone, as the two systems conflict.
Try reducing your Agent Radius value in the Navigation tab, as this will increase the distance between the NavMesh and surrounding walls.
Very hard to see anything from those screenshots! However, it looks like your baked NavMesh is hugging the walls tightly. The player will try to position themselves along the edges, but won't be able to if the walls have colliders. Try increasing the Agent radius instead.
Comments
Try reducing your Agent Radius value in the Navigation tab, as this will increase the distance between the NavMesh and surrounding walls.