Hello, i am learning about the camera and try start with a “static player camera”… How doing camera stay always behind player?
var offset : Vector3;
function Awake()
{
offset = transform.position - player.transform.position;
}
function Update () {
transform.position = player.position + (offset);
}
a alredy try with:
transform.rotation = player.rotation
but the camera do not focuses directly on the player