Hey, When I use MoveToLocation the function tells the character to reach the targert while avoiding any obstacles on the way. I have wondered, how can I increase the distance of the character’s path from the obstacle?
For an example here is the original path:
and here is what I wish the path to be:
The problem is that I want only a specific character to increase the distance from obstacle, which means that I can not do any global change like changing the navmesh, I can only change the character itself.
I have tried in the code to increase the agent radius (and height) but it didn’t seemed to do anything:
GetMovementComponent()->NavAgentProps.AgentRadius
Navmesh are a bit tricky, you need to change the properties inside project settings -> Navmesh. I managed to do what you wanted by changing the AgentRadius but not from the navmesh inside the world but in the defaults settings.