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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2006-09-10T18:12:04+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2006-09-10T18:12:04+00:00</updated>

		<published>2006-09-10T18:12:04+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1689#p1689</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1689#p1689"/>
		<title type="html"><![CDATA[Simple Collision Questions: Everyone must start somewhere.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1689#p1689"><![CDATA[
<blockquote class="uncited"><div>Well i decided i will implement more than just box on box, and do some sphere, plane, and triangle-mesh(world geometry).  So far everything is going well.<br><br>If all i care about is knowing when two objects have a collision, and do not plan on using any of the dynamics, why might i want to collect more than one contact point, vs. doing just the pair detector?</div></blockquote>It depends what information you want indeed. If you just want a boolean (collides yes/no?) some calculations can be discarded. You can either modify the Dispatcher, to return a special version of the PersistentManifold, or just clear all contact points every frame (shouldn't take any processor cycles really).<br><blockquote class="uncited"><div>Also, the CCD is for being able to time step the collisions right? Like to check if a collision possibly passed completely through an object in a given frame, but did not actually report a collision due to the object moving two fast per frame.  Or is this something i need to write myself?</div></blockquote>The continuous collision detection (CCD) query is used for ray casting, for object sweep (character control) and for avoiding missing collision for fast moving rigidbodies.<br>The time-stepping in the dynamics loop needs to be improved to handle the time of impact queue properly. This is work in progress.<br>At the moment, I'm cleaning up the sample code (it became a mess of copy/paste). Then a demo showing a fork-lift vehicle (on Steve Bakers request), and a character controller, using the CCD sweep. After this, I will start working on the TOI dynamics, using ideas from Brian Mirtich's TimeWarp RigidBodies paper.<br><br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Sun Sep 10, 2006 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TheJustinWalsh]]></name></author>
		<updated>2006-09-08T18:59:05+00:00</updated>

		<published>2006-09-08T18:59:05+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1687#p1687</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1687#p1687"/>
		<title type="html"><![CDATA[Simple Collision Questions: Everyone must start somewhere.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1687#p1687"><![CDATA[
Well i decided i will implement more than just box on box, and do some sphere, plane, and triangle-mesh(world geometry).  So far everything is going well.<br><br>If all i care about is knowing when two objects have a collision, and do not plan on using any of the dynamics, why might i want to collect more than one contact point, vs. doing just the pair detector?<br><br>Also, the CCD is for being able to time step the collisions right? Like to check if a collision possibly passed completely through an object in a given frame, but did not actually report a collision due to the object moving two fast per frame.  Or is this something i need to write myself?<br><br>Thanks again,<br>Justin Walsh<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=758">TheJustinWalsh</a> — Fri Sep 08, 2006 6:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TheJustinWalsh]]></name></author>
		<updated>2006-08-25T20:23:33+00:00</updated>

		<published>2006-08-25T20:23:33+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1594#p1594</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1594#p1594"/>
		<title type="html"><![CDATA[Simple Collision Questions: Everyone must start somewhere.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1594#p1594"><![CDATA[
I will mainly be using it in a current game project that i am working on at school.  The game is a throwback to old-school arcade shooters, just done in a 3D engine, but keeping the 2D game play in tact.<br><br>Most of the collisions will be in a local 2D coordinate system, however there are world level collisions that we would like to detect as well, Terrain, and other static world geometry.   I figure our most complex collision well be against a properly generated collision mesh on the world geometry, and other statics vs a hit box for the player.<br><br>Our project team has decided that we will not require rigid body dynamics at this time, but by using Bullet instead of something like opcode, the option is there for later.  We looked at several options, and for some reason keep ending back on Bullet's website.  Being a complete newb to physics and 3D collisions in general does not help.  So as dog suggested, i will most likely pick up that book, and as you suggested play with the demo's and look into the classes and functions mentioned above.<br><br>Thank You,<br>Justin Walsh<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=758">TheJustinWalsh</a> — Fri Aug 25, 2006 8:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2006-08-25T19:13:26+00:00</updated>

		<published>2006-08-25T19:13:26+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1593#p1593</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1593#p1593"/>
		<title type="html"><![CDATA[Simple Collision Questions: Everyone must start somewhere.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1593#p1593"><![CDATA[
Do you want to just use collision detection, and no rigid body dynamics?<br><br>CollisionInterfaceDemo should provide you with basic functionality. Just create the CollisionWorld (pass in the Dispatcher and Broadphase as in the demo. Dispatcher is an internal mechanism that chooses the algorithm for a pair of objects, broadphase is an optimization based on AABB's).<br><br>Add some objects to the CollisionWorld, and then each frame call <br>CollisionWorld::PerformDiscreteCollisionDetection<br><br>For each pair of collision objects that have their bounding box overlap (based on Broadphase) and is not filtered out by CollisionFiltering has a contactManifold that contains contact points. Usually, those are passed to the Rigid Body Dynamics for constraint handling. The CollisionInterfaceDemo shows how to iterate over all contactManifolds and get all contact points between all collision objects.<br><br>Alternatively, you can setup a callback when each contact points gets added and removed. For added contact points, assign a callback method to gContactAddedCallback. See ConcaveDemo how to do this. In Rigid Body dynamics, this can be handy to override friction, but you can also use it to do your own collision response.<br><br>If you just want box-box, you can also directly use the GjkPairDetector, it will give you 1 closest point. See CollisionDemo for this low-level usage. The benefit of using extra infrastructure is that it will collect more then 1 point. <br><br>What do you want to use it for exactly?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Fri Aug 25, 2006 7:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dog]]></name></author>
		<updated>2006-08-25T18:20:51+00:00</updated>

		<published>2006-08-25T18:20:51+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1589#p1589</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1589#p1589"/>
		<title type="html"><![CDATA[Simple Collision Questions: Everyone must start somewhere.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1589#p1589"><![CDATA[
Buy Real-Time Collision Detection by Christer Ericson. Accessible to everyone, thorough and with source code.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=60">dog</a> — Fri Aug 25, 2006 6:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TheJustinWalsh]]></name></author>
		<updated>2006-08-25T16:15:34+00:00</updated>

		<published>2006-08-25T16:15:34+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1587#p1587</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1587#p1587"/>
		<title type="html"><![CDATA[Simple Collision Questions: Everyone must start somewhere.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1587#p1587"><![CDATA[
Hello everyone,<br><br>I am a bit new here and had a few simple questions that will hopefully get me going in the world of Bullet.  Currently I am interested in simple collision detection, simple as in Box on Box collisions with decent accuracy, performance is more important here.<br><br>I worked through the CollisionInterfaceDemo, and do not feel i have an understanding of what is needed to set up a simple callback system for collisions, or even realize the full potential of what i am able to do.  If anyone would be willing to point me to the right classes to be using for said collisions, that would be splendid.<br><br>I currently understand that will need to use a CollisionWorld and Populate it with Collision objects, but the Dispatcher and BroadPhaseInterface still mystify me as to how to use them, or if this is even what i am looking for.<br><br>Thank you in advance,<br>Justin Walsh<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=758">TheJustinWalsh</a> — Fri Aug 25, 2006 4:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
