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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2021-09-11T19:05:02+00:00</updated>

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

		<entry>
		<author><name><![CDATA[drleviathan]]></name></author>
		<updated>2021-09-11T19:05:02+00:00</updated>

		<published>2021-09-11T19:05:02+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43603#p43603</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43603#p43603"/>
		<title type="html"><![CDATA[Re: btCompoundShape of convex hulls not rendering in BasicExample]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43603#p43603"><![CDATA[
Typically math libraries that have been optimized will NOT initialize object components to default values in the default ctor.  This to avoid wasted CPU cycles for the cases where the default values are immediately overwritten.  As such they require the Application developer to explicitly initialize.<br><br>As I recall, sometime around 2011 or so the <strong class="text-strong">Havok</strong> physics math library took this to the next level and eliminated the copy ctor and normal math operators that used it.  As a consequence code that used to be expressible in one line...<div class="codebox"><p>Code: </p><pre><code>Vector3 C = A + delta * (B - A)</code></pre></div>...could only be done over several lines:<div class="codebox"><p>Code: </p><pre><code>Vector3 C(B);C.subtract(A);C.multiply(delta);C.add(A);</code></pre></div>The new method was more verbose but less work was hidden by C++ abstraction and the compiled binary would use fewer byte codes.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11033">drleviathan</a> — Sat Sep 11, 2021 7:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zb10948]]></name></author>
		<updated>2021-09-10T22:12:52+00:00</updated>

		<published>2021-09-10T22:12:52+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43599#p43599</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43599#p43599"/>
		<title type="html"><![CDATA[Re: btCompoundShape of convex hulls not rendering in BasicExample]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43599#p43599"><![CDATA[
Thank you, it gets displayed now. I wasn't aware I need to call setIdentity() to load the defaults.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14092">zb10948</a> — Fri Sep 10, 2021 10:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[drleviathan]]></name></author>
		<updated>2021-09-10T21:27:32+00:00</updated>

		<published>2021-09-10T21:27:32+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43598#p43598</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43598#p43598"/>
		<title type="html"><![CDATA[Re: btCompoundShape of convex hulls not rendering in BasicExample]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43598#p43598"><![CDATA[
In the <strong class="text-strong">btCompoundShape</strong> case your <strong class="text-strong">testModelTransform</strong> is left uninitialized when you pass it to <strong class="text-strong">createRigidBody()</strong>.  Does the problem go away when you initialize it to something reasonable?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11033">drleviathan</a> — Fri Sep 10, 2021 9:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zb10948]]></name></author>
		<updated>2021-09-10T16:32:56+00:00</updated>

		<published>2021-09-10T16:32:56+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43597#p43597</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43597#p43597"/>
		<title type="html"><![CDATA[btCompoundShape of convex hulls not rendering in BasicExample]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43597#p43597"><![CDATA[
Hello, <br><br>I've been looking into bullet for some simulation of rigid bodies with multiple hulls or collision sections. For start i use infrastructure provided by BasicExample for some POCs. By creating two btConvexHulls and their bodies I get the exact shapes on screen. When I try to do the same via btCompoundShape::addChildShape() and then make a single body, there's nothing in the visualization.<br><br>Is this an issue in approach or a limit of a built in visualizer?<br><div class="codebox"><p>Code: </p><pre><code>    btTransform t1;    m_collisionShapes.push_back(collisionModel-&gt;meshes[0]-&gt;generatedHull);    createRigidBody(0., t1, collisionModel-&gt;meshes[0]-&gt;generatedHull);    btTransform t2;    t2.setOrigin(btVector3(-0.5, 0, 0));    m_collisionShapes.push_back(collisionModel-&gt;meshes[1]-&gt;generatedHull);    createRigidBody(0., t2, collisionModel-&gt;meshes[1]-&gt;generatedHull);</code></pre></div><div class="codebox"><p>Code: </p><pre><code>    btCompoundShape * compound = new btCompoundShape();    btTransform t1;    compound-&gt;addChildShape(t1, collisionModel-&gt;meshes[0]-&gt;generatedHull);        btTransform t2;    t2.setOrigin(btVector3(-0.5, 0, 0));    compound-&gt;addChildShape(t2, collisionModel-&gt;meshes[1]-&gt;generatedHull);        btTransform testmodelTransform;    m_collisionShapes.push_back(compound);    createRigidBody(0., testmodelTransform, compound);</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14092">zb10948</a> — Fri Sep 10, 2021 4:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
