Question by
amirleon5990 · Mar 18, 2021 at 05:54 AM ·
c#camera followc# tutorial
Camera Follow position reset,Camera Follow Position is wrong
when i use this script on camera
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class cmFollow : MonoBehaviour
{
public GameObject FObject;
private Vector3 offset = new Vector3(0, 2, -8);
void Start()
{
}
void Update()
{
transform.position = FObject.transform.position + offset;
}
}
the main camera position default is 0,2,-8 but when I play it changes to 0,3,-13 what is the problem here
Comment
Your answer
Follow this Question
Related Questions
A way to make the player get punished when standing still? 0 Answers
Can't Add Script "The script needs to derive from MonoBehaviour!" 1 Answer
Code Help Needed. Anti-Time Cheat System Not Working !!! 0 Answers
} expected Type or namespace definition, or end-of-file expected, Basic Clicker 0 Answers