- Home /
Question by
zsoltgyure · Jan 09, 2016 at 12:09 PM ·
cameracamera-movement
Third Person Camera like in Splinter Cell
I want to rotate my camera around the player, in the horizontal and the vertical axes too, like in Splinter Cell.
I can rotate the camera around the player with this code in the horizontal axis:
transform.RotateAround(player.transform.position, Vector3.up, Input.GetAxis("Mouse X") / 2000);
But I can't do that the camera follow the player, and to rotate in the vertical axis.
Can anybody help me to finish the script, or give me advices?
Thanks!
Comment
Your answer
Follow this Question
Related Questions
Buttons move with the camera and I don't want that 0 Answers
Help with Texture following Camera!/How to create an effect like this in Unity 3d? 1 Answer
TPS camera in multiplayer... 2 Answers
How do I get my camera to rotate around the y=0 coordinate it's looking at? 0 Answers
Vuforia camera frustum out of view after image target is lost 0 Answers