diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2005-08-23 17:16:02 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2005-08-23 17:16:02 +0400 |
commit | 056a33ac699f0393b87503536b5492f03fd6b55a (patch) | |
tree | 1f23c3d9ef4d44ed9a48097b914481f5822830de /source/gameengine/Ketsji/KX_KetsjiEngine.h | |
parent | 0192536102a0d0179f2cb09e62c7035c13ce3723 (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.h | 5 |
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(); |