Check if Dump's velocity is zero
Hi guys! I'm making smooth camera using Vector3.SmoothDamp. So this method returns velocity of the camera. Now I want to check if this velocity equals zero this way:
 transform.position = Vector3.SmoothDamp(transform.position, player.position, ref velocity, smoothTime);
 
 if(velocity.magnitude < Mathf.Epsilon)
 {
      Debug.Log("Velocity equal zero, do more movement");
 }
 
               The if statement never become true, why that happening? While camera is standing its velocity equals 2.0457384E-06 (ALMOST ZERO). So how to check it correclty?
               Comment
              
 
               
              Your answer