Rotating a game object to match the surface of a 2D Line
Hey!
I've been trying to set the angle of my game object (which is triangle sprite facing downwards) so that the sprites bottom lines up with a virtual 2d line.
I've attached an image above to show what i am trying to achieve, this problem is part of a bigger solution but I've broken it down in to a separate one so i could try and solve it but i have had no luck so far.
untitled.png
(6.2 kB)
Comment
Your answer
Follow this Question
Related Questions
2d - Check if point is within bounds, rotation 1 Answer
Advanced placing position from the same angle of target position 0 Answers
How to detect when an object is within an arc? 2 Answers
How to calculate vector perpendicular to a direction vector? 2 Answers
Dragging a circle with mouse input into worldspace UI - Getting the correct angles 0 Answers