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

Method isPossibleToTakeStep

testbed/src/Timer.h:146–148  ·  view source on GitHub ↗

True if it's possible to take a new step

Source from the content-addressed store, hash-verified

144
145// True if it's possible to take a new step
146inline bool Timer::isPossibleToTakeStep(std::chrono::duration<double> timeStep) const {
147 return (mAccumulator >= timeStep);
148}
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) {

Callers 1

updatePhysicsMethod · 0.80

Calls

no outgoing calls

Tested by 1

updatePhysicsMethod · 0.64