# | Line 56 | Line 56 | void VelocityVerletIntegrator::initialize(){ | |
---|---|---|
56 | calcForce(true, true); | |
57 | ||
58 | //execute constraint algorithm to make sure at the very beginning the system is constrained | |
59 | < | //if (nConstrained) { |
60 | < | // constrainA(); |
61 | < | // calcForce(true, true); |
62 | < | // constrainB(); |
63 | < | //} |
59 | > | if (info_->getNGlobalConstraints() > 0) { |
60 | > | rattle->constraintA(); |
61 | > | calcForce(true, true); |
62 | > | rattle->constraintB(); |
63 | > | } |
64 | ||
65 | if (needVelocityScaling) { | |
66 | velocitizer_->velocitize(targetScalingTemp); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |