public virtual void CleanUp() { //This should only be called after the constraint has been removed from the solver. entityA = null; entityB = null; OnInvolvedEntitiesChanged(); }