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