# | Line 59 | Line 59 | void VelocityVerletIntegrator::initialize(){ | |
---|---|---|
59 | if (info_->getNGlobalConstraints() > 0) { | |
60 | rattle->constraintA(); | |
61 | calcForce(true, true); | |
62 | < | rattle->constraintB(); |
62 | > | rattle->constraintB(); |
63 | > | info_->getSnapshotManager()->advance();//copy the current snapshot to previous snapshot |
64 | } | |
65 | ||
66 | if (needVelocityScaling) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |