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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2006-09-23T17:37:11+00:00</updated>

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

		<entry>
		<author><name><![CDATA[AshMcConnell]]></name></author>
		<updated>2006-09-23T17:37:11+00:00</updated>

		<published>2006-09-23T17:37:11+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1890#p1890</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1890#p1890"/>
		<title type="html"><![CDATA[Adding a reference to a non-bullet rigidbody]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1890#p1890"><![CDATA[
Oops, missed that one  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br><br>So I just get the CollisionObject from the manifold like this: -<br><div class="codebox"><p>Code: </p><pre><code>CollisionObject* obA = static_cast&lt;CollisionObject*&gt;(contactManifold-&gt;GetBody0());CollisionObject* obB = static_cast&lt;CollisionObject*&gt;(contactManifold-&gt;GetBody1());</code></pre></div>and get my <strong class="text-strong">own </strong>rigidbody by doing a simple: -<br> <div class="codebox"><p>Code: </p><pre><code>MyRigidBody *rb = (MyRigidBody *)obA-&gt;m_userObjectPointer;</code></pre></div>Thanks!<br>All the best,<br>Ash<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=913">AshMcConnell</a> — Sat Sep 23, 2006 5:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2006-09-23T15:15:15+00:00</updated>

		<published>2006-09-23T15:15:15+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1881#p1881</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1881#p1881"/>
		<title type="html"><![CDATA[Re: Adding a reference to a non-bullet rigidbody]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1881#p1881"><![CDATA[
<blockquote class="uncited"><div>Hi Folks,<br><br>I am hoping to use bullet to do only collision detection.  Appolgies of this is a silly question, but I couldnt find the answer when I searched.<br><br>I have written a few tests using the collisionObject + collisionWorld objects using collisionWorld-&gt;AddCollisionObject(collisionObject) and all seems to work as i'd expect (hurah!) <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I am hoping to add a reference to my rigidbody object.  I see that the AddCollisionObject creates a broadphase proxy with the reference as the collisionObject that was passed in.<br><br>I was hoping to add another AddCollisionObject method with an extra void* parameter which will be passed on to the CreateProxy method.<br><br>Is this a sensible thing to do?  Does anyone see any problem with doing it that way?<br><br>Thanks for your help and thanks for giving us Bullet!<br><br>All the best,<br>Ash</div></blockquote>Did you try to create a CollisionObject, and then pointing its<div class="codebox"><p>Code: </p><pre><code>m_userObjectPointer</code></pre></div>to your rigidbody?<br><br>Hope this helps,<br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Sat Sep 23, 2006 3:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AshMcConnell]]></name></author>
		<updated>2006-09-23T13:45:57+00:00</updated>

		<published>2006-09-23T13:45:57+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1878#p1878</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1878#p1878"/>
		<title type="html"><![CDATA[Adding a reference to a non-bullet rigidbody]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1878#p1878"><![CDATA[
Hi Folks,<br><br>I am hoping to use bullet to do only collision detection.  Appolgies of this is a silly question, but I couldnt find the answer when I searched.<br><br>I have written a few tests using the collisionObject + collisionWorld objects using collisionWorld-&gt;AddCollisionObject(collisionObject) and all seems to work as i'd expect (hurah!) <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I am hoping to add a reference to my rigidbody object.  I see that the AddCollisionObject creates a broadphase proxy with the reference as the collisionObject that was passed in.<br><br>I was hoping to add another AddCollisionObject method with an extra void* parameter which will be passed on to the CreateProxy method.<br><br>Is this a sensible thing to do?  Does anyone see any problem with doing it that way?<br><br>Thanks for your help and thanks for giving us Bullet!<br><br>All the best,<br>Ash<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=913">AshMcConnell</a> — Sat Sep 23, 2006 1:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
