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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2006-11-29T00:54:24+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2006-11-29T00:54:24+00:00</updated>

		<published>2006-11-29T00:54:24+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2617#p2617</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2617#p2617"/>
		<title type="html"><![CDATA[Re: 2D Environment]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2617#p2617"><![CDATA[
<blockquote class="uncited"><div>What would be the easiest way to adapt bullet dynamics to a 2d environment?</div></blockquote>- The main change would be to adapt the constraint solver. Right now, Bullet uses a btSequentialImpulseConstraintSolver. One could simplify it to just be 2D, then it becomes like Erin Catto's Box2D.<br>- Clamp the world transform to 2D coordinates every frame.<br>- The collision detection might need some 2D changes, it depends which 2D shapes you need. You can register 2D collision algorithms to the dispatcher, CollisionAlgorithms are called Arbiters in Erin's Box2D. <br>A lot of 3D collision algorithms can be used without modification for 2D cases as long as you clamp contact point coordinates (see next step).<br>- If you use 3D collision algorithms, for newly added contact points: clamp one component to zero. You can use the ContactAddedCallback for this.<br><br>Another approach is to add a '2D constraint'. I heard that in ODE they did something like 'Flatland'.<br><br>It would be a fun and not too difficult task to work on, if one has time <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Wed Nov 29, 2006 12:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[samy]]></name></author>
		<updated>2006-11-29T00:40:21+00:00</updated>

		<published>2006-11-29T00:40:21+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2616#p2616</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2616#p2616"/>
		<title type="html"><![CDATA[2D Environment]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2616#p2616"><![CDATA[
What would be the easiest way to adapt bullet dynamics to a 2d environment?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1322">samy</a> — Wed Nov 29, 2006 12:40 am</p><hr />
]]></content>
	</entry>
	</feed>
