I have a cube that has different coloured sides. I need a line trace to distinguish which side is being looked at.
Each side is its own element but not its own component.
Any advice?
Well the easiest thing would be to let the hit cube determine which side that is.
You do your trace, cast to the cube and use an interface to get the side (input the hit result of just the hit location and result with a INT, string or whatever).
Then inside of your cube you can convert the hit location to the local space and since the actor might rotate but the relative location of each side never changes you can easily return that.
And with convert to local space I essentially mean get the vector between the hit location and the actor location.