How can I rotate a line trace array?
Hello Unreal Community!
I have a blueprint question that has me stumped. I'm creating an editable grid for placing windows on a building using blueprints.
The For Loop generates a 2D array and uses line traces to snap the windows to the surface and align them to the normals of the mesh as seen here:
However, when I rotate the building, the line traces stay in place causing the windows to rotate incorrectly. How can I apply a rotation to the line trace array so that it can be controlled in my blueprint?
Thanks for the help!!
I solved my issue by multiplying the x axis value that created space between the items in the array by thy right vector of an empty scene component. Image attached for reference if anyone needs a similar solution.
answered Aug 28 '17 at 02:44 PM
Why not add the windows as child actor components to the building mesh? Then it becomes an issue of child management and rotation will follow accordingly when the parent rotated the children rotate correctly.
answered Aug 25 '17 at 08:35 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here