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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2007-07-06T09:07:43+00:00</updated>

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

		<entry>
		<author><name><![CDATA[aws357]]></name></author>
		<updated>2007-07-06T09:07:43+00:00</updated>

		<published>2007-07-06T09:07:43+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4696#p4696</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4696#p4696"/>
		<title type="html"><![CDATA[breaking joints during simulation]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4696#p4696"><![CDATA[
this thread is the offspring of this thread I posted on blenderartist...<br><a href="http://blenderartists.org/forum/showthread.php?t=99846" class="postlink">http://blenderartists.org/forum/showthread.php?t=99846</a><br><br>So I downloaded the demo with the ragdolls where you can break the joints with a mouse and managed to get a grip of what is currently happening...<br><br>I am currently trying to adapt this demo to my need.<br>Here is a small test I am doing. The goal is to press a key and the object OBCube.001 will fall...<br><a href="http://uploader.polorix.net//files/265/physbreaktestc.blend" class="postlink">http://uploader.polorix.net//files/265/ ... estc.blend</a><br><br>Here is the python script that is assigned as a controller to Cube.001.<div class="codebox"><p>Code: </p><pre><code>import GameLogic as glimport PhysicsConstraints as pccont=gl.getCurrentController()owner=cont.getOwner()kpress=cont.getSensor("kpress")if kpress.isPositive():pc.removeConstraint(#don't know how I can get the constraint ID from the Constraint stack...#)</code></pre></div>The problem I have is to get the constraint ID from Cube.001 knowing that the constraint has been created using Blender GUI. My guess is, once I have this ID, this little script will sever the joint between Cube.001 and Cube making me a happy blenderist ---&gt;  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br>So the main question is, where can I get this ID when the constraint has been built with the GUI?<br><br>Optional question (only useful if there is no straight answer to the main question)<br>In the demo the joints are created in python using createConstraint. If I have no choice, I will do it that way, but in that case, what should I do to place the joint as I wish? (make it hinge, modifie the pivot position etc...)<br><br>Thanks <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1816">aws357</a> — Fri Jul 06, 2007 9:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aws357]]></name></author>
		<updated>2007-07-06T09:07:19+00:00</updated>

		<published>2007-07-06T09:07:19+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4695#p4695</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4695#p4695"/>
		<title type="html"><![CDATA[breaking joints during simulation]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4695#p4695"><![CDATA[
as there is a "1 post before you can post link/URL" I take this opportunity to say hello <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I usually roam the Blenderartist forum and didn't have much interest in the physic engine until I discovered the ability to bake IPO to make easy physics driven animations with Blender.<br><br> <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> Ok. Now it's done, I can post links and URLs... * joy *<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1816">aws357</a> — Fri Jul 06, 2007 9:07 am</p><hr />
]]></content>
	</entry>
	</feed>
