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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2021-01-02T17:47:27+00:00</updated>

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

		<entry>
		<author><name><![CDATA[przecze]]></name></author>
		<updated>2021-01-02T17:47:27+00:00</updated>

		<published>2021-01-02T17:47:27+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43234#p43234</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43234#p43234"/>
		<title type="html"><![CDATA[Solver residual vs. average overlap for stacked spheres]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43234#p43234"><![CDATA[
Hey, I'm wondering how to relate solver residual (the one accessed with <em class="text-italics">solver.m_analyticsData.m_remainingLeastSquaresResidual</em>) with expected average overlap of static objects.<br>Let's say I have a simulation with a big stack of spheres. I don't want them to overlap more than 10% of the sphere radius. I noticed Residual scales linearly with the number of spheres and quadratically with the length unit. So I set my threshold like this:<div class="codebox"><p>Code: </p><pre><code>m_dynamicsWorld.getSolverInfo().m_leastSquaresResidualThreshold = std::pow(sphere_r*0.1, 2)*spheres_count;</code></pre></div>Is this the right approach?<br><br>I'm using <div class="codebox"><p>Code: </p><pre><code>btSequentialImpulseConstraintSolver</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13325">przecze</a> — Sat Jan 02, 2021 5:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
