PhysicsAnimation.h
Go to the documentation of this file.
void SetNumberOfFixedSubTimeSteps(unsigned int numberOfSteps)
Sets the number of fixed sub-timesteps.
std::shared_ptr< PhysicsAnimation > PhysicsAnimationPtr
Definition: PhysicsAnimation.h:149
virtual unsigned int GetNumberOfSubTimeSteps(double timeIntervalInSeconds) const
Returns the required number of sub-timesteps for given time interval.
Abstract base class for physics-based animation.
Definition: PhysicsAnimation.h:22
Definition: pybind11Utils.h:24
void SetIsUsingFixedSubTimeSteps(bool isUsing)
Sets true if fixed sub-timestepping is used.
virtual void OnAdvanceTimeStep(double timeIntervalInSeconds)=0
Called when a single time-step should be advanced.
void SetCurrentFrame(const Frame &frame)
Sets current frame cursor (but do not invoke update()).
bool GetIsUsingFixedSubTimeSteps() const
Returns true if fixed sub-timestepping is used.
double GetCurrentTimeInSeconds() const
Returns current time in seconds.
unsigned int GetNumberOfFixedSubTimeSteps() const
Returns the number of fixed sub-timesteps.
virtual void OnInitialize()
Called at frame 0 to initialize the physics state.