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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2006-10-02T13:57:16+00:00</updated>

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

		<entry>
		<author><name><![CDATA[MarkZ]]></name></author>
		<updated>2006-10-02T13:57:16+00:00</updated>

		<published>2006-10-02T13:57:16+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2022#p2022</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2022#p2022"/>
		<title type="html"><![CDATA[Help with constraints.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2022#p2022"><![CDATA[
Thanks for the reply. Do you have a link handy to the lessons?<br><br>Cheers,<br>Mark.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=950">MarkZ</a> — Mon Oct 02, 2006 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gee]]></name></author>
		<updated>2006-10-02T12:43:42+00:00</updated>

		<published>2006-10-02T12:43:42+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2021#p2021</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2021#p2021"/>
		<title type="html"><![CDATA[Help with constraints.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2021#p2021"><![CDATA[
Hello,<br><br>I have quickly look and not found anything, though I'm not sure about what you wrote I don't want to stay stupid things.<br><br>I suggest you look at Kenny's lessons 12, it covers this topic.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=728">gee</a> — Mon Oct 02, 2006 12:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MarkZ]]></name></author>
		<updated>2006-10-02T01:12:04+00:00</updated>

		<published>2006-10-02T01:12:04+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2017#p2017</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2017#p2017"/>
		<title type="html"><![CDATA[Help with constraints.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=2017#p2017"><![CDATA[
Hello,<br><br>I've been working on a dune buggy simulator for a uni game programming assignment. I can simulate single bodies pretty well and have a sphere rolling around a terrain with friction. I plan to use 4 spheres as wheels and I'm trying to connect these to a chassis. I got told by the subject tutor that most physics engines used constraints to connect rigid bodies but he doesn't know much about it and that led me to these forums. I've read Kenny's paper and have tried to build a lagrange multiplier constraint system in matlab to test it.<br><br>I seem to be having some troubles trying to model a ball and socket joint. At the moment my update loop looks like:<div class="codebox"><p>Code: </p><pre><code>for i=dt:dt:1    % calculate lambda for constraint forces    b = -J * (Minv * Fext);    A = J * Minv * J';    lambda = A\b       % update postion     u = u + Minv * (J'*lambda + Fext) * dt;    s = s + dt * S * u;        S = getS(s);    % recalculate jacobian    JiAng = -skewMatrix(quatToMatrix(s(4:7))*riAnc);    JjAng = skewMatrix(quatToMatrix(s(11:14))*rjAnc);    J = [JiLin JiAng JjLin JjAng];          plot(s(1), s(2), 'o');    plot(s(8), s(9), '+');end</code></pre></div>It produces the following plot of the positions of the center of masses:<br><img src="http://members.optusnet.com.au/hansol99/error.png" class="postimage" alt="Image"><br>This plot is with a directly down force being applied on the left body with the two bodies being connected by a ball and socket joint. This looks incorrect to me as the positions are seperating when they started as far apart as the joint should allow.<br><br>I'm pretty sure I've set all the matrices up properly and have printed them out and check them a few times, so I was wondering if there any obvious errors in my update loop. Any help would be great! If I need to post and more code/information just let me know and I can throw it up.<br><br>Cheers,<br>Mark.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=950">MarkZ</a> — Mon Oct 02, 2006 1:12 am</p><hr />
]]></content>
	</entry>
	</feed>
