Inverse dynamic displacement constraints in real-time cloth and soft-body models