Hi all
I am really struggling to get an object to rotate and face another object, I have read and tried many many of the solutions online but none seem to work for me. I will try to explain what I am trying to do as best as I can (picture included).
(2D Project)
I wanted to be able to move the cross to a square when it has been clicked on while facing the direction of the square, I have the cross moving to the correct squares but not facing the correct direction.
In the picture I have attached I am trying to get the cross to rotate on the Z axis and face the squares on click, some of the solutions out there make the cross face the squares but rotate it in different places and make the cross looks strange, I am wanting the cross to look the same just change angle so that it is facing whichever square has been clicked on.
using C#
Any help would be appreciated
Thanks