Added function to get delta time
Now in local physics API
This commit is contained in:
parent
66e93fbdae
commit
a440cffb0e
|
@ -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 .*/
|
||||||
|
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue