Question by
Spiv5 · Aug 13, 2016 at 04:10 PM ·
cameracamera-movementcamera rotateroll a ball
Roll a ball camera rotation on Q and E
I want it so that my camera rotates left when I press Q and right when I press E. I am following the roll-a-ball tutorial and I also want it so it is always looking at the ball
// Use this for initialization
void Start () {
offset = transform.position - player.transform.position;
speed = 5;
}
// Update is called once per frame
void LateUpdate () {
transform.position = player.transform.position + offset;
}
Comment
Your answer
Follow this Question
Related Questions
Help With Camera rotation on X and Y Axis (Target Focused) 1 Answer
Using DampSmooth in EulerAngle is affecting the Position.Z value of the gameObject. 0 Answers
Camera Roll/Headbob? 0 Answers
How to recreate the Silent Hill 1 camera style? 0 Answers
Camera can't keep up with mouse when the FPS is low 0 Answers