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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2023-11-20T01:41:14+00:00</updated>

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

		<entry>
		<author><name><![CDATA[goosesensor]]></name></author>
		<updated>2023-11-20T01:41:14+00:00</updated>

		<published>2023-11-20T01:41:14+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44479#p44479</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44479#p44479"/>
		<title type="html"><![CDATA[Recursive btCompoundShape oddities]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44479#p44479"><![CDATA[
I've read that creating a hierarchy of btCompoundShapes should work, but I'm having an issue with it.<br><br>My tree looks like this:<br><div class="codebox"><p>Code: </p><pre><code>                                         btCompoundShape                              /                 |                 \(btSphereShape, btCompoundShape) (btSphereShape, btCompoundShape) (btSphereShape, btCompoundShape)                       |                                |                                |       (btSphereShape, btCompoundShape)  (btSphereShape, btCompoundShape)   (btSphereShape, btCompoundShape)                                    |                                  |                                  |                        (btSphereShape)                    (btSphereShape)                     (btSphereShape)</code></pre></div>Each leaf is a btSphereShape.  Each internal node is a btCompoundShape, with one btSphereShape child, and one btCompoundShape.<br><br>It's hard to see in the below gif, but debug drawing shows that all visual sphere meshes also have the expected green collision mesh in the correct location.  However, all of the spheres at 2+ levels deep do not interact with the dynamic body being projected out of the camera.  The root (white) sphere and its three immediate child btSphereShapes do interact as expected.<br><br><img src="https://mkd.net/Recording_2023.11.19_17.14.19.194.gif" class="postimage" alt="Image"><br><br>I have checked the code which creates this tree many, many times and am left scratching my head.  I think it's expecially strange that the debug shape is drawn but the body still isn't interacted with.  Are there special considerations when nesting btCompoundShapes?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=12815">goosesensor</a> — Mon Nov 20, 2023 1:41 am</p><hr />
]]></content>
	</entry>
	</feed>
