Does anyone know how I can get the player to rotate with the camera so it cant face it?
Here is my script just change camera to true and if you need position copy the if and change rotation to position drag your player to player and camera to fobject it might work I originally made this for 2d.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FollowPlayer : MonoBehaviour
{
public Transform player; //Assign in inspect
public Transform fobject; // Assign in inspect
public bool camera; // Assign in inspect
// Update is called once per frame
void Update()
{
if (camera)
{
fobject.rotation= new Vector3(player.rotation.x, player.rotation.y, player.rotation.z);
}
}
}