Relative state formulation