Untitled

 avatar
unknown
csharp
a year ago
427 B
9
Indexable
    //For the camera, it will always follow the Pivot
    public Transform camMoveTarget;
    public float pLerp = .02f;
    public float rLerp = .01f;


    // Update is called once per frame
    void Update()
    {
        transform.position = Vector3.Lerp(transform.position, camMoveTarget.position, pLerp);
        transform.rotation = Quaternion.Lerp(transform.rotation, camMoveTarget, rLerp);
        
    }
Editor is loading...
Leave a Comment