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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2014-02-24T07:32:44+00:00</updated>

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

		<entry>
		<author><name><![CDATA[xakepp35]]></name></author>
		<updated>2014-02-24T07:32:44+00:00</updated>

		<published>2014-02-24T07:32:44+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=33022#p33022</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=33022#p33022"/>
		<title type="html"><![CDATA[rigid bodies stops colliding]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=33022#p33022"><![CDATA[
i have written some kind of simple dynamics world analog, using opencl bullet3<br>i am doing step simulation in following manner:<div class="codebox"><p>Code: </p><pre><code>_narrowPhase-&gt;writeAllBodiesToGpu();_broadphaseSap-&gt;writeAabbsToGpu();_rigidPipeline-&gt;writeAllInstancesToGpu();_rigidPipeline-&gt;stepSimulation( timeDelta );_narrowPhase-&gt;readbackAllBodiesToCpu();</code></pre></div>i am working with rigidbodies directly by means of array, provided with _narrowPhase-&gt;getBodiesCpu();<br>i have registered 3 spheres with radius 512, and 3 rigid bodies with mass 512;<br><br>first sphere is controlled via keyboard by means of m_linVel/m_angVel variables, which are written to gpu before simulation.<br>also camera matrix is being calculated from its pos and orientation, which are read to cpu after simulation.<br>spheres 2 and 3 are rendered on screen just where they are<br>i am basically controlling its motion, by applying some impulse to it, and do run simulation, trying to sphere2 and sphere3 with my sphere1<br><br><strong class="text-strong"><span style="text-decoration:underline">under certain circumstances (i can not figure out which) spheres resume flying, but stop colliding.</span></strong><br>also, if i place third sphere at (0,0,1024) i can collide with it for some (variable) time<br>if i place it at (0,1024,0) i can not, but i can hit second sphere, placed at (0,0,0) which can hit third sphere.<br>coordinates are in between -8192.0, +8192.0, velocities are not so high.<br><br><strong class="text-strong">What could be the point, doc?</strong><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9521">xakepp35</a> — Mon Feb 24, 2014 7:32 am</p><hr />
]]></content>
	</entry>
	</feed>
