<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/986" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2007-02-20T23:17:54+00:00</updated>

	<author><name><![CDATA[Real-Time Physics Simulation Forum]]></name></author>
	<id>https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/986</id>

		<entry>
		<author><name><![CDATA[Dirk Gregorius]]></name></author>
		<updated>2007-02-20T23:17:54+00:00</updated>

		<published>2007-02-20T23:17:54+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3551#p3551</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3551#p3551"/>
		<title type="html"><![CDATA[Box2D in 3D]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3551#p3551"><![CDATA[
and it is also:<br><br>I_world = R * I_local * Transpose( R )<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14">Dirk Gregorius</a> — Tue Feb 20, 2007 11:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dirk Gregorius]]></name></author>
		<updated>2007-02-20T23:09:35+00:00</updated>

		<published>2007-02-20T23:09:35+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3550#p3550</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3550#p3550"/>
		<title type="html"><![CDATA[Box2D in 3D]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3550#p3550"><![CDATA[
This will not work since the last row and column are zero so the inversion will fail<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14">Dirk Gregorius</a> — Tue Feb 20, 2007 11:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bjorten]]></name></author>
		<updated>2007-02-20T22:31:30+00:00</updated>

		<published>2007-02-20T22:31:30+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3549#p3549</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3549#p3549"/>
		<title type="html"><![CDATA[Box2D in 3D]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3549#p3549"><![CDATA[
thanks for you reply<br><br>so is this a correct way to calculate the WorldInverseInertia for a box?<br><div class="codebox"><p>Code: </p><pre><code>InertiaBody:(   y*y + z*z, 0,         0           )(   0,         z*z + x*x, 0           )  * Mass / 12(   0,         0,         x*x + y*y   )R = body's rotation matrixWorldInverseInertia = MatrixInverse(R_Transpose * InertiaBody * R)</code></pre></div>I haven't understood all about inertia yet so I just need to get the calculations right so I can debug and figure out how it works <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Also, I am using 4x4 matrices now (D3DXMATRIX) instead of 3x3. I just start with the identity matrix and put the 3x3 in the top left corner. This shouldn't have any effect on the calculations right? Or does it screw up the CrossProduct-matrices?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1628">bjorten</a> — Tue Feb 20, 2007 10:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dog]]></name></author>
		<updated>2007-02-20T20:42:03+00:00</updated>

		<published>2007-02-20T20:42:03+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3544#p3544</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3544#p3544"/>
		<title type="html"><![CDATA[Box2D in 3D]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3544#p3544"><![CDATA[
If you read Erin's slides you will see an equation that is essentially:<br><div class="codebox"><p>Code: </p><pre><code>inverseMassMatrix = (1/m1 + 1/m2) * IdentityMatrix - CrossProductMatrix(r1) * WorldInverseInertia1 * CrossproductMatrix(r1) - CrossProductMatrix(r2) * WorldInverseInertia2 * CrossproductMatrix(r2) Final Mass Matrix M = Inv(inverseMassMatrix)</code></pre></div>I have written CrossProductMatrix instead of the tilda ~ so it is clearer.<br><br>All of the * are matrix multiplies.  m1 and m2 are the masses of the bodies. WoldInverseInertia are the inertia tensors in world space (these will be off diagonal if the body has rotation).<br><br>You can construct a cross product matrix of a vector r1, like this:<br><div class="codebox"><p>Code: </p><pre><code>0       -r1.z       r1.yr1.z        0      -r1.x-r1.y   r1.x          0</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=60">dog</a> — Tue Feb 20, 2007 8:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bjorten]]></name></author>
		<updated>2007-02-20T19:07:41+00:00</updated>

		<published>2007-02-20T19:07:41+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3541#p3541</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3541#p3541"/>
		<title type="html"><![CDATA[Box2D in 3D]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3541#p3541"><![CDATA[
I'm trying to make the Box2D demo work in 3D but have some problems.<br><br>My first goal is to make a pendulum (like example 6 in the demo). However I can only make it swing in one direction. I have tried calculated the M matrix but I dont think I have succeded.<br><br>Anyone wanna push me in the right direction? I'm sure someone must have tried making this excellent demo work in 3D but I couldn't find anything on the forum.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1628">bjorten</a> — Tue Feb 20, 2007 7:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
