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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2008-04-16T19:35:57+00:00</updated>

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

		<entry>
		<author><name><![CDATA[calli]]></name></author>
		<updated>2008-04-16T19:35:57+00:00</updated>

		<published>2008-04-16T19:35:57+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8067#p8067</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8067#p8067"/>
		<title type="html"><![CDATA[Re: Restitution broken in 2.45]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8067#p8067"><![CDATA[
Jippieee!<br><br>Thanks,<br>Carsten<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=31">calli</a> — Wed Apr 16, 2008 7:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mal]]></name></author>
		<updated>2008-04-16T19:32:17+00:00</updated>

		<published>2008-04-16T19:32:17+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8066#p8066</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8066#p8066"/>
		<title type="html"><![CDATA[Re: Restitution broken in 2.45]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8066#p8066"><![CDATA[
Problem solved <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>I tried casting with...<br>((btSequentialImpulseConstraintSolver*)m_solver-&gt;setSolverMode<br><br>This compiled OK, but crashed when running.<br><br>Ben fixed the issue, and sent me his solution...<br>((btSequentialImpulseConstraintSolver*)m_solver)-&gt;setSolverMode<br><br>Which, of course, works perfectly - Doh! <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Many thanks to Ben for applying the patch to SVN.<br>Mal<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=27">mal</a> — Wed Apr 16, 2008 7:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mal]]></name></author>
		<updated>2008-04-16T10:36:10+00:00</updated>

		<published>2008-04-16T10:36:10+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8055#p8055</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8055#p8055"/>
		<title type="html"><![CDATA[Re: Restitution broken in 2.45]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8055#p8055"><![CDATA[
Hi Erwin,<br><br>I also tried adding in the one line patch with the latest svn version of Blender, and am finding the same issue...<br><br>'setSolverMode' : is not a member of 'btConstraintSolver'<br><br><br>I tried downloading the bullet-2.68.zip file, to see if setSolverMode has been defined in the latest SDK, but there seems to be an issue at the moment with downloading ( I'll try again later today ).  If it's defined in the latest SDK, hopefully it'll be possible to update to the latest Bullet version within the Blender svn.<br><br><br>As restitution is currently broken in the current Blender build, it would be great to get it fixed for the 2.45 release - the GE has had some great updates recently in many other areas!<br><br>Mal<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=27">mal</a> — Wed Apr 16, 2008 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[calli]]></name></author>
		<updated>2007-11-02T10:15:28+00:00</updated>

		<published>2007-11-02T10:15:28+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6186#p6186</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6186#p6186"/>
		<title type="html"><![CDATA[Re: Restitution broken in 2.45]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6186#p6186"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>Compiling ==&gt; 'SumoPHYCallbackBridge.cpp'source/gameengine/Physics/Sumo/Fuzzics/include/SM_Callback.h:4: warning: ‘class SM_Callback’ has virtual functions but non-virtual destructorsource/gameengine/Physics/Bullet/CcdPhysicsEnvironment.h: In constructor ‘CcdPhysicsEnvironment::CcdPhysicsEnvironment(btDispatcher*, btOverlappingPairCache*)’:source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.h:236: warning: ‘CcdPhysicsEnvironment::m_scalingPropagated’ will be initialized aftersource/gameengine/Physics/Bullet/CcdPhysicsEnvironment.h:59: warning:   ‘int CcdPhysicsEnvironment::m_numIterations’source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp:298: warning:   when initialized heresource/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp: In member function ‘void CcdPhysicsEnvironment::addCcdPhysicsController(CcdPhysicsController*)’:source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp:360: warning: unused variable ‘scene’source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp: In member function ‘virtual bool CcdPhysicsEnvironment::proceedDeltaTime(double, float)’:source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp:474: warning: comparison between signed and unsigned integer expressionssource/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp: In member function ‘virtual void CcdPhysicsEnvironment::setSolverType(int)’:source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp:559: error: ‘class btConstraintSolver’ has no member named ‘setSolverMode’source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp: In member function ‘virtual PHY_IPhysicsController* CcdPhysicsEnvironment::rayTest(PHY_IPhysicsController*, float, float, float, float, float, float, float&amp;, float&amp;, float&amp;, float&amp;, float&amp;, float&amp;)’:source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp:693: warning: unused variable ‘minFraction’source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp: In member function ‘virtual void CcdPhysicsEnvironment::CallbackTriggers()’:source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp:904: warning: unused variable ‘ctrl0’source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp:904: warning: unused variable ‘ctrl1’source/gameengine/Physics/Sumo/Fuzzics/include/SM_MotionState.h:37: warning: ‘class SM_MotionState’ has virtual functions but non-virtual destructorsource/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp: At global scope:source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp:262: warning: ‘void DrawAabb(btIDebugDraw*, const btVector3&amp;, const btVector3&amp;, const btVector3&amp;)’ defined but not usedscons: *** [/home/src/bdev/build/linux2/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.o] Error 1scons: building terminated because of errors.cw@Manta:/home/src/bdev/blender$                                    </code></pre></div>Hmm. error: ‘class btConstraintSolver’ has no member named ‘setSolverMode’ is the error I guess? Missing include or mix of Bullet Versions?<br><br>Greetings,<br>Carsten<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=31">calli</a> — Fri Nov 02, 2007 10:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2007-11-01T17:42:59+00:00</updated>

		<published>2007-11-01T17:42:59+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6173#p6173</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6173#p6173"/>
		<title type="html"><![CDATA[Re: Restitution broken in 2.45]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6173#p6173"><![CDATA[
It was a bug in the Bullet version used for Blender 2.45. A new constraint solver was used. It can be easily fixed with a one-liner, if you re-compile Blender from code:<br><br>Add the setSolverMode around line 560 of in blender\source\gameengine\Physics\Bullet\CcdPhysicsEnvironment.cpp<div class="codebox"><p>Code: </p><pre><code>voidCcdPhysicsEnvironment::setSolverType(int solverType){switch (solverType){case 1:{if (m_solverType != solverType){m_solver = new btSequentialImpulseConstraintSolver();m_solver-&gt;setSolverMode(btSequentialImpulseConstraintSolver::SOLVER_USE_WARMSTARTING | btSequentialImpulseConstraintSolver::SOLVER_RANDMIZE_ORDER);break;}}</code></pre></div>It will be fixed when I get to update to a new version of Bullet 2.64.<br><br>Can you let us know if that works?<br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Thu Nov 01, 2007 5:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[calli]]></name></author>
		<updated>2007-11-01T10:21:07+00:00</updated>

		<published>2007-11-01T10:21:07+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6168#p6168</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6168#p6168"/>
		<title type="html"><![CDATA[Re: Restitution broken in 2.45]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6168#p6168"><![CDATA[
I found exactly the same together with my students. Maybe it is a Blender Bug then I will fill in a bugreport for the GE, but I think it is more related to Bullet?<br><br>See attached .blend (.zip because .blend is not allowed here...  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> )<br><br>Best Regards,<br>Carsten<dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://pybullet.org/Bullet/phpBB3/download/file.php?id=45">Restitut.zip</a></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=31">calli</a> — Thu Nov 01, 2007 10:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Icoxo]]></name></author>
		<updated>2007-10-19T17:23:22+00:00</updated>

		<published>2007-10-19T17:23:22+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=5982#p5982</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=5982#p5982"/>
		<title type="html"><![CDATA[Restitution broken in 2.45]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=5982#p5982"><![CDATA[
<a href="http://blenderartists.org/forum/showthread.php?p=968809&amp;posted=1#post968809" class="postlink">http://blenderartists.org/forum/showthr ... post968809</a><br>Restitution simply doesn't work in 2.45. Works in 2.44.<br><br>Erwin, this is an large bug in your area of the GE's development, essemcially makes things like good mini-golf games impossible without a bounce python script.<br><br>Thanks in advance for looking into it.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=421">Icoxo</a> — Fri Oct 19, 2007 5:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
