Method for tracking an object with respect to a body comprising the steps of: providing a three-dimensional model of said body providing a three-dimensional model of said object and tracking the position of said object in said three-dimensional model of said body on the basis of a sensor measuring repeatedly a three-dimensional surface of said body and said object.