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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2013-06-17T17:40:23+00:00</updated>

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

		<entry>
		<author><name><![CDATA[John Nagle]]></name></author>
		<updated>2013-06-17T17:40:23+00:00</updated>

		<published>2013-06-17T17:40:23+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31053#p31053</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31053#p31053"/>
		<title type="html"><![CDATA[Re: Is this 3D GJK intersection test code correct?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31053#p31053"><![CDATA[
The termination condition looks questionable. Termination for GJK is hard to get right. Back in the 1990s, Steven Cameron at Oxford and I struggled with this. See <a href="http://www.cs.ox.ac.uk/stephen.cameron/distances/" class="postlink">his web site for the code.</a><br><br>It's possible to get into states where the solver is moving through a sequence of adjacent supports.  Are you exiting at<div class="codebox"><p>Code: </p><pre><code>if(loopCounter &gt; MAX_ITTERATIONS)                break;</code></pre></div>If so, collision is undecided. Note when you exit there. <br><br>Objects for GJK need to be really convex. Coplanar triangles are a no-no, because they create ambiguity over which face belongs in the simplex. So you can't just use triangle meshes; you have to handle arbitrary polygons. In my <a href="http://www.animats.com" class="postlink">Falling Bodies</a> system, I used QHull to construct convex hulls, and required that there be at least a 1 degree angle across each edge. This guarantees convexity. <br><br>Single precision GJK is flaky. Use 64-bit floats. If you're using GJK in a physics engine, some objects will settle into the face-parallel condition, which results in small differences between large numbers and can lead to total loss of significance in 32-bit.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=244">John Nagle</a> — Mon Jun 17, 2013 5:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ConvexHull]]></name></author>
		<updated>2013-05-31T10:25:51+00:00</updated>

		<published>2013-05-31T10:25:51+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=30907#p30907</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=30907#p30907"/>
		<title type="html"><![CDATA[Is this 3D GJK intersection test code correct?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=30907#p30907"><![CDATA[
Hi there,<br>Here's the link:<br><a href="https://github.com/ChrisLundquist/CS143-Project/blob/master/src/physics/GJKSimplex.java" class="postlink">https://github.com/ChrisLundquist/CS143 ... mplex.java</a><br>I've recoded it in my application, but sometimes I'm getting false positives, while the other GJK implementation seem to be working fine.<br>What might be wrong with code from link? Is it my fault or it's there a bug?<br>Any help is welcomed<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=10055">ConvexHull</a> — Fri May 31, 2013 10:25 am</p><hr />
]]></content>
	</entry>
	</feed>
