I’m trying to do something like a room generator. Where each room is connected each others by a “Bridge”. My idea is to get an Arrow component on each Blueprint Actor, then make a dot product between their arrows so I get somehow the angle to rotate my bridge or room and the arrows get facing each other --><–. But the whole calculation it’s getting out of hand. Is there a way to make it easier? Or should keep trying to calculate by math?
Thank you
You can just use the ‘look at rotation’ node
1 Like
I just got it to work as I wanted it. If anyone is interested:
On the left is the exit door of the room and in the right is the “bridge” with actor with their arrow pointing “out”.
so I invert the door exit’s arrow by mult *-1 and the use the RotationFromXVector that give me the exactly rotation for the bridge.
(I guess I don’t need an arrow from the “bridge enter”)
1 Like
I wonder what this does:
I used to so I know how much rotation I need. When I build a new Room the entry “forward” could be from different angles.