Added function to get delta time

Now in local physics API
This commit is contained in:
Robin Engman 2013-12-20 11:43:12 +01:00 committed by Dander7BD
parent 66e93fbdae
commit a440cffb0e
2 changed files with 7 additions and 0 deletions

View File

@ -117,6 +117,11 @@ void API_Impl::SetSubscription( API::EventAction_Destruction functionPointer )
} }
} }
float API_Impl::GetFrameTimeLength() const
{
return this->updateFrameLength;
}
void API_Impl::Update() void API_Impl::Update()
{ /** @todo TODO: Update is a temporary solution .*/ { /** @todo TODO: Update is a temporary solution .*/

View File

@ -20,6 +20,8 @@ namespace Oyster
void SetGravityConstant( float g ); void SetGravityConstant( float g );
void SetSubscription( EventAction_Destruction functionPointer ); void SetSubscription( EventAction_Destruction functionPointer );
float GetFrameTimeLength() const;
void Update(); void Update();
bool IsInLimbo( const ICustomBody* objRef ); bool IsInLimbo( const ICustomBody* objRef );