- Home /
The question is answered, right answer was accepted
How to make camera face to 2D planet as player moves around it.
I want the camera to face down to the planet as the player moves around it but I don't have a lot of C# experience so i need a little help I've been trying to do this for days.
This is all in 2D just in case you skimmed over the question and didn't see.
EDIT: I found a solution at https://answers.unity.com/questions/1023987/lookat-only-on-z-axis.html by user: jimbobulus2
So is the game view top down? And you want the camera to move halfway to the planet whilst having the player in view? Or do you simply want the camera to rotate so the top view will face the planet?
Answer by Carlos900 · Dec 21, 2019 at 02:16 PM
Use transform.lookAt(Planet);
.
this method doesn't work in my 2D environment I tried it in many different ways. It makes everything look weird and unplayable.
Follow this Question
Related Questions
Stop main camera from zooming 2D 1 Answer
Perserve Image quality? 0 Answers
Hotline Miami style camera! 0 Answers
how move 2D character relative to any resolution 2 Answers
Auto Scaling Camera 2D 0 Answers