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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2007-02-13T17:59:16+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Erin Catto]]></name></author>
		<updated>2007-02-13T17:59:16+00:00</updated>

		<published>2007-02-13T17:59:16+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3467#p3467</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3467#p3467"/>
		<title type="html"><![CDATA[Box2D Prestep function]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3467#p3467"><![CDATA[
The pre-step function applies the accumulated impulse from the previous time step. This is an example of warm-starting: using an old solution as an initial guess.<br><br>By commenting out those lines, you have only partially turned off warm-starting. To turn it off completely, you need to set c-&gt;Pn = c-&gt;Pt = 0 in the pre-step. With your modification the solver is in bad shape.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=12">Erin Catto</a> — Tue Feb 13, 2007 5:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[chudo19]]></name></author>
		<updated>2007-02-13T08:22:22+00:00</updated>

		<published>2007-02-13T08:22:22+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3465#p3465</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3465#p3465"/>
		<title type="html"><![CDATA[Box2D Prestep function]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=3465#p3465"><![CDATA[
Hi , Erin. While studing your Box2D example , i noticed you apply combined impulse in prestep function:<br><div class="codebox"><p>Code: </p><pre><code>// Apply normal + friction impulse/**/Vec2 P = c-&gt;Pn * c-&gt;normal + c-&gt;Pt * tangent;body1-&gt;velocity -= body1-&gt;invMass * P;body1-&gt;angularVelocity -= body1-&gt;invI * Cross(r1, P);body2-&gt;velocity += body2-&gt;invMass * P;body2-&gt;angularVelocity += body2-&gt;invI * Cross(r2, P);</code></pre></div>When commented stacking goes unstable. <br><br>Why this code is matter? <br>As i understand impulses already applied and body velocities modified  while performing Impulse iteration.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=574">chudo19</a> — Tue Feb 13, 2007 8:22 am</p><hr />
]]></content>
	</entry>
	</feed>
