- Home /
2D look at
Hy,
I want to make a platformer, with a cowboy as enemy, who is shooting at you.
I want to use LookAt for look the player, but i'm totally lost with quaternions and eulerAngles.
How can i make it? i have the player position, but how to transform the gun to look always the player's direction in 2D?!
Answer by MileSplit · Sep 14, 2015 at 02:04 AM
Here try this.
http://answers.unity3d.com/questions/585035/lookat-2d-equivalent-.html
Also this is a very popular question, try googling a little more.
Your answer
Follow this Question
Related Questions
Merge a rotation(vector3) to a lookAt(quaternion) ? 1 Answer
rotate camera to face a specific object? 1 Answer
How to rotate an object depending on the rotation of an other Object 3 Answers
LookAt() rotation difference from rotating the object(position does not change) 1 Answer
How to rotate ? 2 Answers