Update positions and constraints.