<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Librarian nightmare &amp; dream</title>
	<atom:link href="http://www.giuliopiacentino.com/physical-boxes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.giuliopiacentino.com/physical-boxes/</link>
	<description>An archive of personal and collaborative projects and experiments, certainly developed with an eye on digital architecture.</description>
	<lastBuildDate>Fri, 16 Dec 2011 17:21:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Matias</title>
		<link>http://www.giuliopiacentino.com/physical-boxes/comment-page-1/#comment-396</link>
		<dc:creator>Matias</dc:creator>
		<pubDate>Tue, 27 Oct 2009 23:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.giuliopiacentino.com/?p=723#comment-396</guid>
		<description>Hi!
Your example is really usefull, thanks for that!
I was trying to remove a book while the program is running but i couldnt, how can i do it?
thanks for all!
Matias.-</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Your example is really usefull, thanks for that!<br />
I was trying to remove a book while the program is running but i couldnt, how can i do it?<br />
thanks for all!<br />
Matias.-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giulio</title>
		<link>http://www.giuliopiacentino.com/physical-boxes/comment-page-1/#comment-214</link>
		<dc:creator>Giulio</dc:creator>
		<pubDate>Wed, 10 Jun 2009 15:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.giuliopiacentino.com/?p=723#comment-214</guid>
		<description>Answered by mail, but add this comment for completeness:

Add a new function addSphere, similar to addBox, with this content:

  //ADD FALLING SPHERE
  CollisionShape fallShape = new SphereShape(30);
  myTransform = new Transform(); myTransform.origin.set(new Vector3f(pX,pY,pZ)); myTransform.setRotation(new Quat4f(0,0,quat3,1));
  DefaultMotionState fallMotionState = new DefaultMotionState(myTransform);
  float myFallMass = 1; Vector3f myFallInertia = new Vector3f(10,0,0);
  fallShape.calculateLocalInertia(myFallMass, myFallInertia);
  RigidBodyConstructionInfo fallRigidBodyCI = new RigidBodyConstructionInfo(myFallMass, fallMotionState, fallShape, myFallInertia);
  Book fallRigidBody = new Book(fallRigidBodyCI, c);
  myWorld.addRigidBody(fallRigidBody);  
  fallRigidBodies.add(fallRigidBody);


Then, in draw(), change box(..) with sphere(30);
In setup(), add sphereDetail(8);

That&#039;s it! Have fun.</description>
		<content:encoded><![CDATA[<p>Answered by mail, but add this comment for completeness:</p>
<p>Add a new function addSphere, similar to addBox, with this content:</p>
<p>  //ADD FALLING SPHERE<br />
  CollisionShape fallShape = new SphereShape(30);<br />
  myTransform = new Transform(); myTransform.origin.set(new Vector3f(pX,pY,pZ)); myTransform.setRotation(new Quat4f(0,0,quat3,1));<br />
  DefaultMotionState fallMotionState = new DefaultMotionState(myTransform);<br />
  float myFallMass = 1; Vector3f myFallInertia = new Vector3f(10,0,0);<br />
  fallShape.calculateLocalInertia(myFallMass, myFallInertia);<br />
  RigidBodyConstructionInfo fallRigidBodyCI = new RigidBodyConstructionInfo(myFallMass, fallMotionState, fallShape, myFallInertia);<br />
  Book fallRigidBody = new Book(fallRigidBodyCI, c);<br />
  myWorld.addRigidBody(fallRigidBody);<br />
  fallRigidBodies.add(fallRigidBody);</p>
<p>Then, in draw(), change box(..) with sphere(30);<br />
In setup(), add sphereDetail(8);</p>
<p>That&#8217;s it! Have fun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.giuliopiacentino.com/physical-boxes/comment-page-1/#comment-199</link>
		<dc:creator>david</dc:creator>
		<pubDate>Mon, 11 May 2009 12:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.giuliopiacentino.com/?p=723#comment-199</guid>
		<description>Hey
I was trying to adapt your example to use spheres but I cannot manage. Could you please show me how to do it?
-david</description>
		<content:encoded><![CDATA[<p>Hey<br />
I was trying to adapt your example to use spheres but I cannot manage. Could you please show me how to do it?<br />
-david</p>
]]></content:encoded>
	</item>
</channel>
</rss>

