void PhysicsWorld::StepSimulation(f32 deltaTime) { mTimer += deltaTime; if (mTimer >= mSettings.timeStep) { mTimer -= mSettings.timeStep; AccumulateForces(); Integrate(); SatisfyConstraints(); } }
void ParticleSystem::TimeStep() { AccumulateForces(); Verlet(); SatisfyConstraints(); }