Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity camera follow player 3d smooth

Vector3.SmoothDamp(cam.position, transform.position + cameraOffset, ref cameraVelocity, CameraFollowSmoothTime);
cam.position = cam.position + cameraVelocity * Time.deltaTime;
 
PREVIOUS NEXT
Tagged: #unity #camera #follow #player #smooth
ADD COMMENT
Topic
Name
1+5 =