Hi everyone.
I’m currently working on a racing game and I want a camera better than the “Smooth follow” (doesn’t work well for my game even in the testing phase).
I know exactly what i’m after. I would like it to operate like a boom pole with the car being the center and the camera facing forwards with the car. (like this Imgur: The magic of the Internet)
I’d also like to have some smoothing applied at two different float values, one for the follow and the other for the rotation.
I’m not really sure where to begin with this, other than “find the cars position and rotation” which i’ve done with this:
private GameObject playerCar;
private float playerCarDirection;
void Start()
{
playerCar = GameObject.FindGameObjectWithTag("Player");
}
void Update()
{
playerCarDirection = playerCar.transform.rotation.eulerAngles.y;
}
Any help with getting something smooth and functional working would be greatly appreciated!