初步修复
This commit is contained in:
parent
8fc4357cc6
commit
e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions
18
Common/EngineUtil/TimeImp.cpp
Normal file
18
Common/EngineUtil/TimeImp.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "StdAfx.h"
|
||||
#include "TimeImp.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)
|
||||
#endif
|
||||
|
||||
float TimeImp::GetTimeVelocity( float fVelocity, LOCAL_TIME LocalTime, LOCAL_TIME PrevTime )
|
||||
{
|
||||
float fValue = ( LocalTime - PrevTime ) / TimeImp::m_fCriterionTime;
|
||||
return powf( fVelocity, fValue );
|
||||
}
|
||||
|
||||
float TimeImp::GetTimeVelocity( float fVelocity, float fDelta )
|
||||
{
|
||||
float fValue = ( fDelta * 1000.f ) / TimeImp::m_fCriterionTime;
|
||||
return powf( fVelocity, fValue );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue