From BlenderWiki
Starting with Blender 2.41 you can bake game engine hard body dynamics into animation IPO curves.
[edit] setting up world physics
First set up the world physics.
Go to Material context (F5) [1] then the World buttons [2], and control that the physics engine is set to Bullet [3]:
[edit] setting up your scene
Now set up your scene. In our case we will place a line of dominoes on a plane.
Create a plane (Add->Mesh->Plane) and some dominoes (Add->Mesh->Cube) arranged as shown.
[edit] setting up collision objects
Next select one of the objects that will collide - in our case the first of the dominoes in the line. Tilt it toward the second (rotate) - we'll start it tipping over and let Blender do the rest.
Now for each of the objects (in this case, the dominoes) that will collide
Go to the logic button and click on Actor
Click Dynamic
Click RigidBody
Click Bounds
Change the Bounds type to Convex Hull Polytope (other types can be done but are more complex to setup)
Do this for each object that will be involved in the collisions. The plane (ground) in this case should not have its Logic actor & bounds set. Although it does interact with the other objects (in this case, supporting the dominoes), if we set it as a dynamic it too would fall away by gravity. So, it will be a static actor.
Also do not forget that physics objects have to have a material, or they will bounce around wildly because they need the damping values etc. which are not set on objects without materials.
[edit] animation preview
Press P to see a preview of the game animation
Press ESC when done
[edit] get ready to bake
Go to the Scene buttons (
or F10).
Select the Keyframe start and end range you want the animation you record to start and end on.
[edit] record the IPO
Select Game → Record Game Physics to IPO:
press the P
press ESC when done
[edit] scrub through the animation
now you can scrub forward and backwards through your animation with the arrow keys, and look at the animation curves in ipo window by selecting an object.
[edit] replace the animation
If you change something and press the P the old animation will be recorded over if you have record IPO still enabled.
[edit] troubleshooting and hints
As with all physics systems there are a number of limitations that you need to be aware of please see this page for tips, tricks, and limitations http://www.continuousphysics.com/mediawiki-1.5.8/index.php?title=Physics_Tips
|













![[]](/skins/blender/open.png)
