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:
authorErwin Coumans <blender@erwincoumans.com>2005-08-23 17:16:02 +0400
committerErwin Coumans <blender@erwincoumans.com>2005-08-23 17:16:02 +0400
commit056a33ac699f0393b87503536b5492f03fd6b55a (patch)
tree1f23c3d9ef4d44ed9a48097b914481f5822830de /source/gameengine/Ketsji/KX_KetsjiEngine.h
parent0192536102a0d0179f2cb09e62c7035c13ce3723 (diff)
new game-menu option 'Record Game Physics to Ipo'
including implementation. hope it works, and doesn't break to much. it bakes physics objects transform into ipo, every frame of the running gameengine. When you disable and run the game again, it clears the ipo's again. just for physics objects at the moment. (perhaps some better UI in the future?)
Diffstat (limited to 'source/gameengine/Ketsji/KX_KetsjiEngine.h')
-rw-r--r--source/gameengine/Ketsji/KX_KetsjiEngine.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.h b/source/gameengine/Ketsji/KX_KetsjiEngine.h
index 5af694f5f1f..7f0b4fd59f9 100644
--- a/source/gameengine/Ketsji/KX_KetsjiEngine.h
+++ b/source/gameengine/Ketsji/KX_KetsjiEngine.h
@@ -155,6 +155,9 @@ private:
bool m_show_debug_properties;
+ /** record physics into keyframes */
+ bool m_game2ipo;
+
/** Hide cursor every frame? */
bool m_hideCursor;
@@ -189,6 +192,8 @@ public:
void SetRasterizer(RAS_IRasterizer* rasterizer);
void SetPythonDictionary(PyObject* pythondictionary);
void SetSceneConverter(KX_ISceneConverter* sceneconverter);
+ void SetGame2IpoMode(bool game2ipo,int startFrame);
+
void NextFrame();
void Render();