Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2011-05-28 11:15:27 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-05-28 11:15:27 +0400
commit07dca944766e702453730fe1a55605dab9380c6e (patch)
treec0ac8ab439ef1cd06154353f0d7fa3aa71862ecb /source/gameengine/Ketsji/BL_Action.h
parentbd5f78d1a0bf4e04800395952e9a26ba868cc31a (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.h7
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;}