Webgl, Physics, Gamedev, Webdev, 3d.
characterMesh.position); const amount = (Math.min(dist-10, 0) + Math.max(dist-15, 0)) * 0.02; cameraDirection.scaleAndAddToRef(amount, camera.position); And has these simple properties: do not move if not necessary (stay in the [10..15] distance range) try to follow a target but not locked on it