Hello, I am making a 2D game with unity. And I want my gun too look at the mouse position(there is a mouse object). Also, I have a shoot that moves into the mouse object, can I compare the Vector3.normalized of the shoot's mooving to angle in the z?
Apr 10 '12 at 10:45 AM
Apr 10 '12 at 10:43 AM
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Apr 10 '12 at 10:45 AM
Seen: 492 times
Last Updated: Apr 10 '12 at 10:45 AM
2d side scroller projectile/firing weapon script help needed.
Calculating the Angle between two vectors
Angle to Rotation
follow an object's x-axis and have it translate smoothly into another object's z-axis rotation
How can I make a game object move in parabolic motion as if it were under gravity?
Firing a projectile in 2D
360 Controller and angle problem
Finding the angle between 2 clicked points
Error with gun aim to the mouse
Calculate third Vector3 with two Vector3s and an Angle