step method
void
step()
Implementation
void step() {
for (int f = 0; f < _forces.length; f++) {
_forces[f].beforeStep(this);
}
_integrate();
final int count = springs.length;
for (int it = 0; it < elasticity.iterations; it++) {
for (int i = 0; i < count; i++) {
springs[i].satisfy();
}
_applyGrab();
for (int f = 0; f < _forces.length; f++) {
_forces[f].applyIteration(this);
}
}
for (int f = 0; f < _forces.length; f++) {
_forces[f].afterIterations(this);
}
_forces.removeWhere((SimulationForce force) => !force.isActive);
_breakOverstretched();
_measureMotion();
}