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

Method nextStep

testbed/src/Timer.h:151–156  ·  view source on GitHub ↗

Take a new step => update the timer by adding the timeStep value to the current time

Source from the content-addressed store, hash-verified

149
150// Take a new step => update the timer by adding the timeStep value to the current time
151inline void Timer::nextStep(std::chrono::duration<double> timeStep) {
152 assert(mIsRunning);
153
154 // Update the accumulator value
155 mAccumulator -= timeStep;
156}
157
158// Compute the interpolation factor
159inline float Timer::computeInterpolationFactor(std::chrono::duration<double> timeStep) {

Callers 1

updatePhysicsMethod · 0.80

Calls

no outgoing calls

Tested by 1

updatePhysicsMethod · 0.64