mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:29:47 +02:00
constify and explicit override
This commit is contained in:
parent
9e3a13795a
commit
9b467e94da
1 changed files with 2 additions and 2 deletions
|
@ -40,14 +40,14 @@ public:
|
||||||
int stepSimulationWithSubstepCallback(btScalar timeStep, int maxSubSteps = 1,
|
int stepSimulationWithSubstepCallback(btScalar timeStep, int maxSubSteps = 1,
|
||||||
btScalar fixedTimeStep = btScalar(1.)/btScalar(60.),
|
btScalar fixedTimeStep = btScalar(1.)/btScalar(60.),
|
||||||
SubStepCallback onSubStep = []() { });
|
SubStepCallback onSubStep = []() { });
|
||||||
void synchronizeMotionStates();
|
virtual void synchronizeMotionStates() override;
|
||||||
|
|
||||||
// btDiscreteDynamicsWorld::m_localTime is the portion of real-time that has not yet been simulated
|
// btDiscreteDynamicsWorld::m_localTime is the portion of real-time that has not yet been simulated
|
||||||
// but is used for MotionState::setWorldTransform() extrapolation (a feature that Bullet uses to provide
|
// but is used for MotionState::setWorldTransform() extrapolation (a feature that Bullet uses to provide
|
||||||
// smoother rendering of objects when the physics simulation loop is ansynchronous to the render loop).
|
// smoother rendering of objects when the physics simulation loop is ansynchronous to the render loop).
|
||||||
float getLocalTimeAccumulation() const { return m_localTime; }
|
float getLocalTimeAccumulation() const { return m_localTime; }
|
||||||
|
|
||||||
VectorOfMotionStates& getChangedMotionStates() { return _changedMotionStates; }
|
const VectorOfMotionStates& getChangedMotionStates() const { return _changedMotionStates; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// call this instead of non-virtual btDiscreteDynamicsWorld::synchronizeSingleMotionState()
|
// call this instead of non-virtual btDiscreteDynamicsWorld::synchronizeSingleMotionState()
|
||||||
|
|
Loading…
Reference in a new issue