git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@219 92aac97c-a6ce-11dd-a772-7fcde58d38e6
This commit is contained in:
parent
d8fd9b09b7
commit
6a050c968b
|
@ -56,7 +56,7 @@ class Timer {
|
||||||
double getAccumulator() const; // Return the accumulator value
|
double getAccumulator() const; // Return the accumulator value
|
||||||
void setCurrentDisplayTime(const Time& displayTime); // Set the current display time
|
void setCurrentDisplayTime(const Time& displayTime); // Set the current display time
|
||||||
|
|
||||||
void update(); // Update the timer
|
void update(); // Update the timer by adding some time value (or timeStep by default) to the current time
|
||||||
double getInterpolationFactor() const; // Compute and return the interpolation factor between two body states
|
double getInterpolationFactor() const; // Compute and return the interpolation factor between two body states
|
||||||
void updateDisplayTime(const Time& newDisplayTime); // Set the new currentDisplayTime value
|
void updateDisplayTime(const Time& newDisplayTime); // Set the new currentDisplayTime value
|
||||||
};
|
};
|
||||||
|
@ -110,7 +110,7 @@ inline void Timer::setCurrentDisplayTime(const Time& currentDisplayTime) {
|
||||||
this->currentDisplayTime = currentDisplayTime;
|
this->currentDisplayTime = currentDisplayTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the timer
|
// Update the timer by adding the timeStep to the current time
|
||||||
inline void Timer::update() {
|
inline void Timer::update() {
|
||||||
// Check if the timer is running
|
// Check if the timer is running
|
||||||
if (isRunning) {
|
if (isRunning) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user