diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-11-03 13:48:02 +0300 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-11-03 13:48:02 +0300 |
commit | 318fb94c4b4c15c66737493436929393357b963c (patch) | |
tree | 2e99f9029fa7d7c0e93453f80efd7675f58066f8 /source/gameengine/Ketsji/KX_IpoActuator.h | |
parent | 15f17707cafc50ce4579f7d997b7d34aa94fc0a3 (diff) |
Fix IPO actuator (Bug #1694)
Diffstat (limited to 'source/gameengine/Ketsji/KX_IpoActuator.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_IpoActuator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_IpoActuator.h b/source/gameengine/Ketsji/KX_IpoActuator.h index cdc815dff7b..677d72f546e 100644 --- a/source/gameengine/Ketsji/KX_IpoActuator.h +++ b/source/gameengine/Ketsji/KX_IpoActuator.h @@ -47,6 +47,9 @@ private: /** Computes the current frame from the current time and the IPO start time. */ void SetLocalTime(float curtime); + /** Ensures the current frame is between the start and + end frames. */ + bool ClampLocalTime(); protected: bool m_bNegativeEvent; @@ -63,6 +66,7 @@ protected: /** Current active frame of the ipo. */ float m_localtime; + /** The time this ipo started at. */ float m_starttime; /** play backwards or forwards? (positive means forward). */ |