MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / updatePhysics

Method updatePhysics

testbed/src/SceneDemo.cpp:163–173  ·  view source on GitHub ↗

Update the physics world (take a simulation step) Can be called several times per frame

Source from the content-addressed store, hash-verified

161// Update the physics world (take a simulation step)
162// Can be called several times per frame
163void SceneDemo::updatePhysics() {
164
165 // Clear contacts points
166 mSnapshotsContactPoints.clear();
167
168 if (mIsPhysicsWorldSimulated) {
169
170 // Take a simulation step
171 mPhysicsWorld->update(mEngineSettings.timeStep.count());
172 }
173}
174
175// Render the scene (in multiple passes for shadow mapping)
176void SceneDemo::render() {

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected