﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Doc%3A2.6%2FTutorials%2FPhysics%2FRigid_Bodies</id>
	<title>Doc:2.6/Tutorials/Physics/Rigid Bodies - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Doc%3A2.6%2FTutorials%2FPhysics%2FRigid_Bodies"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Tutorials/Physics/Rigid_Bodies&amp;action=history"/>
	<updated>2026-08-01T01:34:17Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Doc:2.6/Tutorials/Physics/Rigid_Bodies&amp;diff=134297&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Tutorials/Physics/Rigid_Bodies&amp;diff=134297&amp;oldid=prev"/>
		<updated>2018-06-28T20:46:19Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 20:46時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Doc:2.6/Tutorials/Physics/Rigid_Bodies&amp;diff=134296&amp;oldid=prev</id>
		<title>wiki&gt;FloridaJo: /* Hints */ typo</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Tutorials/Physics/Rigid_Bodies&amp;diff=134296&amp;oldid=prev"/>
		<updated>2013-05-07T12:39:06Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Hints: &lt;/span&gt; typo&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Page/Header|2.37a |specialtitle=[[Doc:2.4/Tutorials/BSoD|Blender Summer of Documentation]]}}&lt;br /&gt;
= Basic Physics Tutorial =&lt;br /&gt;
&lt;br /&gt;
Let's turn our famous Default Cube into something cool.&lt;br /&gt;
&lt;br /&gt;
Once you work through this, you can head on over to the [[User:Sculptorjim/BGE/Physics|BGE Physics]] and get ideas for more simulation work.&lt;br /&gt;
&lt;br /&gt;
= Initial Run =&lt;br /&gt;
&lt;br /&gt;
Start the game engine by pressing {{Shortcut|p}} while your mouse is hovering over a 3D View. My guess is that you see a whole lot of nothing.&lt;br /&gt;
&lt;br /&gt;
[[Image:Manual-BGE-Physics-DefaultCubeDoingNothing.png|center|frame|Your first physics simulation.]]&lt;br /&gt;
&lt;br /&gt;
In actuality, the physics simulation is now running. But to make it do anything interesting we need to define our objects better. Hit {{Shortcut|Esc}} and we will get to work.&lt;br /&gt;
&lt;br /&gt;
= Changing Physics Type =&lt;br /&gt;
&lt;br /&gt;
[[Image:Manual-BGE-Physics-BlenderGameEngine.png|center|frame|Switching to the Blender Game Engine.]]&lt;br /&gt;
&lt;br /&gt;
The first step to take is to switch your &amp;quot;Engine&amp;quot; from &amp;quot;Blender Render&amp;quot; or &amp;quot;Cycles&amp;quot; to &amp;quot;Blender Game&amp;quot;. Pay attention to what happens to the Properties Window (to the right) when you do this (and, don't worry -- your regular settings are preserved, just switch back to the other Engine and you can work with them again). If you select a Properties Window tab and then switch between &amp;quot;Blender Game&amp;quot; and &amp;quot;Blender Render&amp;quot;, you will see changes in the layout for: Render, Scene, World, Materials, Particles, and, most importantly, Physics.&lt;br /&gt;
&lt;br /&gt;
[[Image:Manual-BGE-Physics-PropertiesTabs.png|frame|Properties Tabs]]&lt;br /&gt;
&lt;br /&gt;
Notice that the Blender Render Physics tabs have various simulations, including the [[Doc:2.6/Manual/Physics/Soft_Body|Soft Body physics]]. This is totally different from the Rigid Body physics we will see in the Blender Game Engine (BGE). Rigid bodies are non-deforming, while deforming is the whole point of Soft Bodies.&lt;br /&gt;
&lt;br /&gt;
{{clr}}&lt;br /&gt;
&lt;br /&gt;
With the BGE selected, go in the Physics tab and look at the type of physics applied to our cube. It is the default, {{Literal|Static}}---an unmoving, unchanging object. Change it to be of type &amp;quot;Rigid Body&amp;quot;. [[Image:Manual-BGE-Physics-CubePhysicsType.png|frame|Changing Cube to be of type Rigid Body.]] Now press {{Shortcut|p}}, and say &amp;quot;Goodbye, cube!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
We have changed the Cube from being a static, unmoving object to one whose position is dynamically calculated according to the {{literal|Gravity}} setting in the {{literal|World}} Tab. If you change this value the Cube will fall at a different rate.&lt;br /&gt;
&lt;br /&gt;
{{clr}}&lt;br /&gt;
&lt;br /&gt;
= Object Interaction =&lt;br /&gt;
&lt;br /&gt;
A cube that does nothing but fall out of the frame will not exactly get you on the cover of [http://www.physicstoday.org/ Physics Today], so let's add more to the scene.&lt;br /&gt;
&lt;br /&gt;
Start by moving the cube up to be flat on the grid plane with {{Shortcut|g|z|1|Enter}}. Now add a plane with {{Menu|{{Shortcut|Shift|a}}|Mesh|Plane}}. Now scale the mesh with {{Shortcut|s|8|Enter}}.&lt;br /&gt;
&lt;br /&gt;
If you hit {{Shortcut|p}} now, the cube will go back to simply sitting there. What is actually happening is the physics simulation is calculating the collision between the cube and the plane, and it knows that no motion should occur.&lt;br /&gt;
&lt;br /&gt;
It may seem like we are spending plenty of time getting nowhere. So far -- you're right. And we have one more &amp;quot;getting nowhere&amp;quot; step to do: Turning our cube into a Domino.&lt;br /&gt;
&lt;br /&gt;
Scale it with: {{Shortcut|s|y|/|2|Enter}} and {{Shortcut|s|x|/|8|Enter}} (this is to scale from an actual Domino set).&lt;br /&gt;
&lt;br /&gt;
Now, if you want to go nuts, add a [[Doc:2.6/Manual/Modifiers/Generate/Subsurf|Subsurf]] with {{Shortcut|Ctrl|2}} and add in some edge loops with {{Shortcut|Ctrl|r}} in Edit mode to get that rounded Domino shape. Set {{Literal|Shading: Smooth}} and you're not looking bad.&lt;br /&gt;
&lt;br /&gt;
If you want to go hog wild, you can fully model the pip marks and bar.&lt;br /&gt;
&lt;br /&gt;
If you want to go lazy, you can download our [[media:Tutorials-Physics-RigidBodies-Domino.blend|Tutorials-Physics-RigidBodies-Domino.blend]] which already is set up to this point with the above domino ready to go.&lt;br /&gt;
&lt;br /&gt;
After you have your domino how you like it, press {{Shortcut|p}} and see what happens.&lt;br /&gt;
&lt;br /&gt;
What?? Not only are we not making progress -- now we have managed to screw up our simulation so it doesn't even look logical. We'll get there, I promise.&lt;br /&gt;
&lt;br /&gt;
= Collision Bounds =&lt;br /&gt;
&lt;br /&gt;
To fix our problem, we will turn on a very important part of the physics simulation debugging: {{menu|Game|Show Physics Visualization}}. Now {{Shortcut|p}} again. You will see a bunch of colored lines, but the ones we are interested in right now are the (hard to see) white ones and the red ones around them. Go ahead and {{Shortcut|Esc}} then {{Shortcut|z}} then {{Shortcut|p}} again, to see the visualization in wireframe mode.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tutorials-Physics-RigidBody-BadBounds.png|frame|Bad Collision Bounds]]&lt;br /&gt;
&lt;br /&gt;
See how the Domino's bounds (the white diamond-shape) are only a small box?  It is actually only as big as our shortest dimension, from when we scaled the X-axis to 1/8th. Let's fix that.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tutorials-Physics-RigidBody-CollisionBoundsEnable.png‎|frame|Enabling Collision Bounds, Type: Box]]&lt;br /&gt;
Go into the {{Literal|Physics}} tab, find the {{Literal|Collision Bounds}} checkbox, and enable it. Press {{Shortcut|p}} to run again, and it should instantly be working better.&lt;br /&gt;
&lt;br /&gt;
We have enabled &amp;quot;Box&amp;quot; bounds, which will work for now. Unless you wanted to simulate the very slight rounding of our domino's edges, or perhaps the pip marks, Box will suffice.&lt;br /&gt;
&lt;br /&gt;
Now we are ready for the action.&lt;br /&gt;
&lt;br /&gt;
{{clr}}&lt;br /&gt;
&lt;br /&gt;
= Chain Reaction =&lt;br /&gt;
&lt;br /&gt;
Go into Top View with {{Shortcut|Numpad7}} (this will give you a clear view, and it will also disable movement on the z-axis plus make rotation happen ''around'' the z-axis).&lt;br /&gt;
&lt;br /&gt;
Select your domino, and start duplicating it with {{Shortcut|Shift|d}}. Now would be a good time to use {{Shortcut|Shift|r}} to create quick chains of perfectly-spaced dominos. Some of them you will want to rotate with {{Shortcut|r}}.  You might want to only create a few for your first run, so you can get straight to the reaction.&lt;br /&gt;
&lt;br /&gt;
When you have placed all your dominoes, view the side of the first domino with {{Shortcut|Numpad|1}}. Give it a little rotation with {{Shortcut|r}} and move it into place with {{Shortcut|g}} (it doesn't have to be perfect, of course -- the simulator will take whatever you give it and run anyway).&lt;br /&gt;
&lt;br /&gt;
And now, press {{Shortcut|p}}.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tutorials-Physics-RigidBody-SimExample.png|frame|Example of simulation within BGE.]]&lt;br /&gt;
&lt;br /&gt;
You can play around with your display settings, such as enabling/disabling Physics Visualization, wireframe/solid with {{Shortcut|z}} and Textured with {{Shortcut|Alt|z}}.&lt;br /&gt;
&lt;br /&gt;
{{clr}}&lt;br /&gt;
&lt;br /&gt;
= Going Further =&lt;br /&gt;
&lt;br /&gt;
One fun thing to do at this point is to enable [[User:Sculptorjim/BGE/Physics#Recording_to_Keyframes|Recording to Keyframes]] and then doing a full render.&lt;br /&gt;
&lt;br /&gt;
Another idea is to make use of parenting the Domino to a Curve and enabling Duplicates: Frames to ''really'' get elaborate with your setup. Here's one we cooked up that you might recognize:  [[Image:Manual-BGE-Physics-DominoSuzanne.png|frame|Physics sim of dominos in the shape of a familiar face. See: [[Media:Manual-BGE-Physics-DominoSuzanne.blend|Manual-BGE-Physics-DominoSuzanne.blend]].]]&lt;br /&gt;
&lt;br /&gt;
{{clr}}&lt;br /&gt;
&lt;br /&gt;
[[File:Bsod-rigidbodies-castle-of-cards.jpg|thumb|center|300px|Another application of the methods seen here: A castle of cards]]&lt;br /&gt;
&lt;br /&gt;
= Efficiency and Low-poly Modeling =&lt;br /&gt;
&lt;br /&gt;
You might not be happy with the speed of what we created so far. Depending on how you did your domino, it might run very slowly indeed (the sample .blend has a Domino with 380 faces, and runs like molasses when you have 350+ of them). Now it is time to explore a classic gaming trick: Low-poly models.&lt;br /&gt;
&lt;br /&gt;
The basic idea is that you create a copy of the object with a simpler shape, in our case we can do so with a 6-sided rectangular prism. Then you {{literal|Bake}} the colors, normals, and whatever else you wish from the high-poly model onto the low-poly model.&lt;br /&gt;
&lt;br /&gt;
To do this, here are the steps:&lt;br /&gt;
# Make a low-poly model (don't forget to set the Physics properties!)&lt;br /&gt;
# Unwrap the low-poly model onto a new image in the {{literal|UV/Image Editor}}.&lt;br /&gt;
# Make the two models overlap.&lt;br /&gt;
# Now, select the high-poly mesh first (you might have to {{Shortcut|Alt|RMB}} to bring up the selection dialogue instead of randomly clicking), then select the low-poly mesh second. This makes the high-poly the &amp;quot;Selected&amp;quot; and the low the &amp;quot;Active&amp;quot; object.&lt;br /&gt;
# Go to the bottom of the Render tab, the very last section: {{literal|Bake}}. Set the following:&lt;br /&gt;
#* Bake Mode: Normals&lt;br /&gt;
#* Normal Space: Tangent&lt;br /&gt;
#* Selected to Active&lt;br /&gt;
# Now press {{Literal|Bake}} while watching the UV/Image editor window. It should look like this: [[Image:Tutorial-Physics-RigidBodies-NormalsBake.png‎|frame|The Result of a Normals Bake]].&lt;br /&gt;
# Create a new image and select Bake Mode: Textures&lt;br /&gt;
# Bake your second map, the &amp;quot;Texture Map&amp;quot; -- though perhaps a better name here would be &amp;quot;Diffuse Map&amp;quot; or &amp;quot;Color Map&amp;quot;.&lt;br /&gt;
# Now, on the low-poly Textures tab, add 2 textures:&lt;br /&gt;
#* Both will be type {{Literal|Image or Movie}}&lt;br /&gt;
#* Both will be set to Mapping &amp;gt; Coordinates &amp;gt; UV, with Map = &amp;quot;UVMap&amp;quot;.&lt;br /&gt;
#* For the Normal Map texture, turn off Influence &amp;gt; Color and turn on &amp;quot;Normals&amp;quot;.&lt;br /&gt;
#* Find the &amp;quot;Image Sampling&amp;quot; &amp;gt; Normal Map &amp;gt; Tangent setting&lt;br /&gt;
#* For the Texture (or Diffuse, or Color) Map, leave Influence &amp;gt; Color&lt;br /&gt;
&lt;br /&gt;
It is good to test render with only one texture enabled to see what it looks like. You should, however, have a semi-realistic looking domino -- but whose geometry is entirely fake.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tutorial-Physics-RigidBodies-LowResRender.png|frame|Real geometry on the left, fake on the right]].&lt;br /&gt;
&lt;br /&gt;
To replace your high-res dominoes, you could delete the old ones and set up new ones, or you could run a script like the following (which you will have to fix the names to match how you named your low-res domino and your high-res dominoes). &lt;br /&gt;
&lt;br /&gt;
{{clr}}&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import bpy&lt;br /&gt;
copy_me = bpy.data.objects['LowResDomino']&lt;br /&gt;
for o in bpy.data.objects:&lt;br /&gt;
    if o.name[:6] == 'Domino':&lt;br /&gt;
        print(&amp;quot;Converting %s&amp;quot; % o.name)&lt;br /&gt;
        bpy.ops.object.select_all(action='DESELECT')&lt;br /&gt;
        copy_me.select = True&lt;br /&gt;
        delta = o.location - copy_me.location&lt;br /&gt;
        rot = o.rotation_euler&lt;br /&gt;
        bpy.ops.object.duplicate_move(&lt;br /&gt;
            OBJECT_OT_duplicate={&lt;br /&gt;
                'linked':False,&lt;br /&gt;
                'mode':'TRANSLATION'}, &lt;br /&gt;
            TRANSFORM_OT_translate={&lt;br /&gt;
                'value':delta}&lt;br /&gt;
            )&lt;br /&gt;
        bpy.context.selected_objects[0].rotation_euler = rot&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The exciting part comes in running the simulation. Now it should be near-real-time.&lt;br /&gt;
&lt;br /&gt;
Here is the hot-rodded .blend for you to play with: [[Media:Tutorial-Physics-RigidBody-DominoSuzanne2.blend|Tutorial-Physics-RigidBody-DominoSuzanne2.blend]]&lt;br /&gt;
&lt;br /&gt;
{{clr}}&lt;br /&gt;
&lt;br /&gt;
= Interactive Example =&lt;br /&gt;
&lt;br /&gt;
Once you've gotten the hang of the basic process of creating physics objects, you will soon want to add more control over the objects.&lt;br /&gt;
&lt;br /&gt;
For a demo of a simple game, check out [[Doc:2.6/Tutorials/Frijoles|Frijoles]].&lt;br /&gt;
&lt;br /&gt;
It will show you:&lt;br /&gt;
* Use of the Logic Editor and BGE &amp;quot;Bricks&amp;quot; (if you switch the screen layout to &amp;quot;Game Logic&amp;quot; and select various objects to see their bricks)&lt;br /&gt;
* Control of characters through keyboard left/right&lt;br /&gt;
* Force application (the Beans jump continuously)&lt;br /&gt;
* Spawning new objects (the boulders appear continuously)&lt;br /&gt;
* Forcibly putting objects to sleep so that the physics engine has fewer calculations to consider.&lt;br /&gt;
* Switching Scenes&lt;br /&gt;
* ...etc.&lt;br /&gt;
&lt;br /&gt;
= Hints =&lt;br /&gt;
&lt;br /&gt;
*From the developers of the Bullet engine, when designing a simulation:&lt;br /&gt;
**Keep the masses for the dynamic object similar. If you put an object of 100kg resting on an object of 0.1kg, is not accurate and potentially unstable.&lt;br /&gt;
**Assign the right bounds type. For a cylinder, choose cylinder, even for non-moving objects (the same goes for boxes and other shapes). {{Literal|Convex Hull Polytope}} can approximate meshes for moving objects and static objects. {{Literal|Static triangle mesh}} is good for scenarios and terrain.&lt;br /&gt;
**Do not use high values for gravity&lt;br /&gt;
**Do not use too many vertices in objects with {{Literal|Convex Hull Polytope}} enabled.&lt;br /&gt;
**Do not use very large or very small objects (less than 0.1 units).&lt;br /&gt;
**Do not use degenerate triangles in the meshes (triangles where there is one or two very acute angles).&lt;br /&gt;
&lt;br /&gt;
*Objects with higher mass do not fall faster, but require a larger force to be accelerated and stopped. Objects with higher mass only fall faster than lighter objects when there is air drag. You can emulate air drag by using {{Literal|Damp}}. To simulate water environment, use a very high value for damp.&lt;br /&gt;
* Always save before you are going to do {{Literal|Record Animation}}. First, because some bakes can take a long time, and may crash your computer while simulating. After you finished, ''save as'' to get two files. Second, for big simulations, the size of the files can be very different.&lt;br /&gt;
&lt;br /&gt;
[[Category:Physics]]&lt;/div&gt;</summary>
		<author><name>wiki&gt;FloridaJo</name></author>
		
	</entry>
</feed>