/** * Move the camera back or forward in its current angle to a given distance * from some target, at a given height. */ private void CorrectFollowDistance( Vector2 arrow, Vector2 target, float distance, float height) { Vector2 newPos = VectorUtils.Backtrack(arrow, target, distance); transform.position = VectorUtils.Extrude(newPos, height); }