Answers for "smooth camera following script unity"

2

camera follow player unity smooth

// CAMERA FOLLOW PLAYER - IN FIXEDUPDATE

Vector3.SmoothDamp(cam.position, transform.position + cameraOffset, ref cameraVelocity, CameraFollowSmoothTime);
cam.position = cam.position + cameraVelocity * Time.deltaTime;
Posted by: Guest on January-25-2021
9

camera follow

public Transform player;

    public Vector3 offset;

    void LateUpdate()
    {
        transform.position = player.position + offset;
    }
Posted by: Guest on June-11-2020

Code answers related to "smooth camera following script unity"

Browse Popular Code Answers by Language