If i have an object and a world space coordinate that represents the hitpoint of a cameraToWorldSpace ray draw to the mouse position, is it possible to get the world space rotation angle that a ray would need to have to travel from the location of the object to the location of the hit point?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
83 People are following this question.
Vector2.Angle questions and confusion.
Moving forward in world space with rotation.
How can I get Rigidbody.MoveRotation to rotate in world space on two axes?
How to Slerp in wider angles
Animating in Unity Rotation snaps to last rotation key