Z axis keeps getting more and more in the negative

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class FollowCamera : MonoBehaviour

{

[SerializeField] GameObject thingToFollow;

// this things position (camera) should be the same as the car's position

void LateUpdate()

{

    transform.position = thingToFollow.transform.position + new Vector3 (0,0,-10);

}

}

Capture

Is it following itself? It would do that if it’s following itself.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms