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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2011-12-28T02:19:21+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Mars_999]]></name></author>
		<updated>2011-12-28T02:19:21+00:00</updated>

		<published>2011-12-28T02:19:21+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=26567#p26567</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=26567#p26567"/>
		<title type="html"><![CDATA[Resource Management with Bullet?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=26567#p26567"><![CDATA[
I am wondering about btRigidBody and when you dynamically allocate these objects will Bullet delete them once you add them to btDiscreteDynamicsWorld?<br><br>e.g.<br>btRigidBody* groundRigidBody = new btRigidBody(groundRigidBodyCI);<br>dynamicsWorld-&gt;addRigidBody(groundRigidBody);<br><br>since I added it to dynamicsWorld will bullet delete it, or am I still responsible for deleting all my new'd objects?<br><br>So why do I need to do this if I even need to at all?<br><br>for(int i = dynamicsWorld-&gt;getNumCollisionObjects(); ++i)<br>{<br>btCollisionObject* p = dynamicWorld-&gt;getCollsionObjectArray()<em class="text-italics">;<br>delete p;<br>}<br><br>Thanks!</em><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2151">Mars_999</a> — Wed Dec 28, 2011 2:19 am</p><hr />
]]></content>
	</entry>
	</feed>
