1. A method for tracking a model, the method comprising: receiving a depth image of a scene; removing a background of the depth image to isolate a target, wherein the target comprises a model having a plurality of parts; determining that a joint of the model is outside an edge of the isolated target; magnetizing the joint to a closest pixel of the isolated target; and refining the joint within the isolated target based on the closest pixel.