Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity move camera to player fluent

Camera cam = Camera.main;
float speed = 5f;
cam.transform.position = Vector3.Slerp(cam.transform.position, target.transform.position, Time.deltaTime * speed);
 
PREVIOUS NEXT
Tagged: #unity #move #camera #player #fluent
ADD COMMENT
Topic
Name
1+8 =