Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Camera Movement not working properly.

$
0
0
I have my camera a set distance behind and above my player (position 0,10,-10, and rotation 45,0,0) looking down at it, and I want my camera to stay that same distance behind my player, while rotating around it, so if I say "move left" the camera will still appear as if it was in back of me. This is what I tried, but when I move the camera messes up.
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class CameraController : MonoBehaviour {
  5.  
  6.     public Rigidbody player;...
Camera Movement not working properly.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>