I am trying to implement a simple build system. So basically, when I press ‘TAB’ it brings up a Transparent Box I can move around, and provided it hits something, I can then press ‘Left Mouse Button’ and it will spawn an actor at that location.
My problem, is it seems to be able to overlap with other objects until it reaches about the middle then goes on top of that object.
What I wanted to do, is have it avoid overlapping all together. You can see below in pictures. I don’t mind being able to place ontop of another object, I just don’t want it to overlap. Is anyone able to perhaps point me in the right direction that I should be looking at. My line trace code for moving the object around is below.