MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / stepSimulation

Method stepSimulation

src/Physics/Physics.cpp:194–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void Physics::stepSimulation(float time) {
195 dynamicsWorld->stepSimulation(time, 100);
196 for (auto &car : cars) {
197 car->update(dynamicsWorld);
198 }
199}
200
201void Physics::cleanSimulation() {
202 for (auto &car : cars) {

Callers 2

RenderMethod · 0.80
TrainAgentsMethod · 0.80

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected