<?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/7546" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2011-10-19T08:54:44+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Dr.Shepherd]]></name></author>
		<updated>2011-10-19T08:54:44+00:00</updated>

		<published>2011-10-19T08:54:44+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=25894#p25894</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=25894#p25894"/>
		<title type="html"><![CDATA[Re: static bodies don't apear?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=25894#p25894"><![CDATA[
I suppose there is no need to calculateLocalInertial for static object, try commenting out that sentence<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=7605">Dr.Shepherd</a> — Wed Oct 19, 2011 8:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[JohnBoyMan]]></name></author>
		<updated>2011-10-19T04:05:19+00:00</updated>

		<published>2011-10-19T04:05:19+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=25892#p25892</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=25892#p25892"/>
		<title type="html"><![CDATA[static bodies don't apear?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=25892#p25892"><![CDATA[
Hello. I am trying to set up a static body like this. When i set the mass to zero nothing appears on my ogre window. When the mass is set to anything else it will appear. I don't understand. Is there a better way to do static bodies, thanks.<br><br><div class="codebox"><p>Code: </p><pre><code> btTransform startTransform6;     startTransform6.setIdentity(); //Ogre::Vector3( Ogre::Vector3(mW[k].x,0,mW[k].z) + Ogre::Vector3(0 , buildsiteWall[k].height[0]+100 , 0) ))BtOgre::Convert::toBullet(Ogre::Vector3(mW[0].x,0,mW[0].z) + Ogre::Vector3(0 , buildsiteWall[0].height[0]+100 , 0)))      startTransform6.setOrigin( btVector3(btVector3(mW[0].x,0,mW[0].z) + btVector3(0 , buildsiteWall[0].height[0] + 10 , 0) ));     btScalar mass6(0); // colShape-&gt;setPosition(btTransform::getIdentity(), min, max);     //rigidbody is dynamic if and only if mass is non zero, otherwise static     // bool isDynamic1 = (mass6 != 0.f);      btVector3 localInertia8(0,0,0);    // if (isDynamic1)     //colShape-&gt;calculateLocalInertia( mass6, localInertia8 );                   btScalar mass1( 0.0 );  //  bool isDynamic1 = ( mass1 != 0.f );     //btVector3 localInertia8( 0,0,0 );   // if ( isDynamic1 )            colShape-&gt;calculateLocalInertia( mass1,localInertia8 ); myMotionState8 = new MyMotionState(startTransform6,wall1[0]);     btRigidBody::btRigidBodyConstructionInfo rbInfo6(mass1,myMotionState8,colShape,localInertia8);     body6[0] = new btRigidBody(rbInfo6); body6[0]-&gt;setAngularFactor(.0f); body6[0]-&gt;setFriction(0.8f);    body6[0]-&gt;setActivationState(DISABLE_DEACTIVATION);</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=8343">JohnBoyMan</a> — Wed Oct 19, 2011 4:05 am</p><hr />
]]></content>
	</entry>
	</feed>
