//------------------------------------------------------------------------------ void PS_Simulator::updateSimulation(PS_Scalar dt) { if (!mIntegrator) { return; } if (!mPreparedForForceFields || !mPreparedForIntegrator) { prepareSimulation(); } mIntegrator->update(dt, mForceFields, mParticleCount, &mParticleMasses.front(), &mParticleMotions.front()); }
void AtsMainWindow::prepareSimulationActionTriggered() { prepareSimulation(); }