So I’m making an RTS type of game and I want a unit (pawn class) move next to a building (actor class) and attack it.
I’m using blueprint node “Move To Location Or Actor” (i turned off “require navigatable end” and check use pathing) - i set building actor as a goal, but every time unit moves to a building it ends up walking around building and stopping in some random place around it not even facing the building.
So I figured out (by trial and error) that the issue is buildings mesh and it’s collision settings - it seems that unit tries to reach center location of building actor and building’s big mesh obstructs path to it. I tried adjusting acceptance radius but it does not work great, becouse when unit starts moving towards building it goes to some imaginary point behind it that probably is the closest navigatable spot to building’s center.
How could I make it work properly? I’ve googled a lot about this topic, right now I debating on adding some target points around building that will be spots for units to go to, but I wonder if there’s some easier method, something that I missed that might help me here.