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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2010-12-15T09:02:08+00:00</updated>

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

		<entry>
		<author><name><![CDATA[O-san]]></name></author>
		<updated>2010-12-15T09:01:06+00:00</updated>

		<published>2010-12-15T09:01:06+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21407#p21407</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21407#p21407"/>
		<title type="html"><![CDATA[Re: compound collision bug]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21407#p21407"><![CDATA[
Thanks, that solved it =)<br><br>Is it necessary to update the inertia tensor if I have disabled angular factor with setAngularFactor(0)?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=5123">O-san</a> — Wed Dec 15, 2010 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2010-12-14T16:47:10+00:00</updated>

		<published>2010-12-14T16:47:10+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21396#p21396</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21396#p21396"/>
		<title type="html"><![CDATA[Re: compound collision bug]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21396#p21396"><![CDATA[
To fix the collision issues, try calling the<div class="codebox"><p>Code: </p><pre><code>voidbtCompoundShape::updateChildTransform(int childIndex, const btTransform&amp; newChildTransform)</code></pre></div>using the old transform. This should update the internal data structures.<br><br>For the inertia tensor, make sure to remove the object from the world before making the change, and re-insert it afterwards.<br>Thanks,<br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Tue Dec 14, 2010 4:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[O-san]]></name></author>
		<updated>2010-12-15T09:02:08+00:00</updated>

		<published>2010-12-14T11:09:09+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21387#p21387</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21387#p21387"/>
		<title type="html"><![CDATA[[solved] compound collision bug]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21387#p21387"><![CDATA[
Hello!<br><br>I am scaling a child shape of a compound object. The scaling seems fine in debug draw but the collisions does not take place. The body should be pushed out from a nearby wall when the child gets enlarged, this does not happen. I have tried scaling the shape without a compound object and that works fine, the body gets pushed out. Here's my code for scaling the object:<br><div class="codebox"><p>Code: </p><pre><code>    if (mBody-&gt;getCollisionShape()-&gt;isCompound()){      btCompoundShape * comp = (btCompoundShape *)mBody-&gt;getCollisionShape();      btCollisionShape * child = comp-&gt;getChildShape(0);      if(child!=0){        child-&gt;setLocalScaling(btVector3(2.5,2.5,1));      }      ((btCompoundShape *)mBody-&gt;getCollisionShape())-&gt;recalculateLocalAabb();    }</code></pre></div>I have also tried updating the inertia tensor and setMassProps without any success. Any help appreciated!<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=5123">O-san</a> — Tue Dec 14, 2010 11:09 am</p><hr />
]]></content>
	</entry>
	</feed>
