base speed stuff

looping fixes
proper stopping
This commit is contained in:
Aaron Kimbre
2022-10-25 09:48:16 -05:00
parent 8ecfdb6256
commit e70e2025a8
2 changed files with 55 additions and 7 deletions

View File

@@ -287,6 +287,13 @@ public:
*/
void FollowWaypoints(){m_Paused = false;};
/**
* Returns the base speed from the DB for a given LOT
* @param lot the lot to check for
* @return the base speed of the lot
*/
static float GetBaseSpeed(LOT lot);
private:
/**
* The entity that owns this component
@@ -428,6 +435,11 @@ private:
*/
float m_PausedTime = 0.0;
/**
* The laden speed of an object
*/
float m_BaseSpeed;
};
#endif // CONTROLLABLEPHYSICSCOMPONENT_H