diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2011-05-28 11:15:27 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2011-05-28 11:15:27 +0400 |
commit | 07dca944766e702453730fe1a55605dab9380c6e (patch) | |
tree | c0ac8ab439ef1cd06154353f0d7fa3aa71862ecb /source/gameengine/Ketsji/BL_Action.h | |
parent | bd5f78d1a0bf4e04800395952e9a26ba868cc31a (diff) |
BGE Animation:
* Adding IPOs to BL_Action
* Adding a "speed" option to adjust the playback speed by some factor
Diffstat (limited to 'source/gameengine/Ketsji/BL_Action.h')
-rw-r--r-- | source/gameengine/Ketsji/BL_Action.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/BL_Action.h b/source/gameengine/Ketsji/BL_Action.h index 3d977f3984a..203714a3b2f 100644 --- a/source/gameengine/Ketsji/BL_Action.h +++ b/source/gameengine/Ketsji/BL_Action.h @@ -41,6 +41,7 @@ private: struct bPose* m_pose; struct bPose* m_blendpose; struct PointerRNA *m_ptrrna; + class SG_Controller *m_sg_contr; class KX_GameObject* m_obj; float m_startframe; @@ -53,11 +54,14 @@ private: float m_blendframe; float m_blendstart; + float m_speed; + short m_playmode; short m_blendmode; bool m_done; + void InitIPO(); void SetLocalTime(float curtime); public: BL_Action(class KX_GameObject* gameobj, @@ -66,7 +70,8 @@ public: float end, float blendin, short play_mode, - short blend_mode); + short blend_mode, + float playback_speed); ~BL_Action(); bool IsDone() {return m_done;} |