Just to make sure, could you provide a screenshot of your blueprint code?
Also in your next reply, could you include some of your findings upon further debugging such as:
-
The line trace hit location (You can draw a debug sphere to visualize)
-
The result of our Add node that we plug into the New Location Y pin (Your orientation might be different, you might need to subtract from Y instead of adding, or add / subtract to / from the Impact Point X)
Speaking of orientation, whether to assign 1 or -1 to right or left also depends on it! As well as whether to use the actor right vector, negated actor forward vector, actor forward vector, or negated actor forward vector.
- The execution flow, to see if the begin & end overlap events get triggered as expected, which you can debug by placing breakpoints after our Do Once node and before resetting it, or by placing Print String nodes on the said parts
Additionally, could you share screenshots confirming that:
-
The component reference we plug into the Get World Scale node is your static mesh
-
You indeed have a single actor BP for our borders, which you placed 2 times into your level, and each have different actor tags assigned to them
-
Your actor doesn’t rotate towards the direction it’s moving to, which you can showcase & also see it yourself by creating a new arrow component for it, and unchecking it’s Hidden in Game property
Good luck