I’m working with a setup like this:
Where the vectors all start at transform.position and end as follows:
- Black: transform.position + HandlePosition
- Blue: transform.position + Vector2.right
- White: transform.position - HandlePosition.normalized
The idea is that i can move the red handle around to change the White vector (the launch direction of the object).
Now what I would like to get is the angle between the White and Blue vectors.
I want to get this angle so that I can calculate the trajectory of the object and display a trajectory line.
Given the example shown on the picture, I would expect an angle of about 45 degrees.