This is a quick one, I have an inactive gun that looks at a target and fires but when I move, it goes of target. BTW I am using Transform.LookAt.
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
117 People are following this question.
Creating a Window - Camera movement
Using LookAT causes no rotation at all?
How to object rotate on a single axis towards another object? C#
2d Turret WORKS but is turned 90 degrees from the right way
How to use Quaternion.slerp and Quaternion.LookRotation with a child gameobject