title: How to use linear interpolation inside GODOT
body: <p>I'm trying to make a smooth camera movement using linear interpolation, but looks like I cannot pass Delta with it.. not sure if that is the problem. Instead it just snaps its position</p>
  <p>CameraBase is only a spatial 3D, and the actual camera Node is his child node</p>
  <pre><code>func _unhandled_input(event):
      if event.is_action_released(&quot;ui_focus_next&quot;):
          i += 1
          if i &gt;= allies.size():
              i = 0
          pointer.translation = allies[i].translation + Vector3(0,5,0)
          focus_camera(allies[i])
  
  
  func focus_camera(target):
      var move = $CameraBase.translation.linear_interpolate(target.translation, CAMERA_SPEED)
      $CameraBase.set_translation(move)
  
  </code></pre>
  <p>It would work fine if was using Input instead of unhandle, but I read that is not the proper way to do it</p>