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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2012-07-24T13:10:27+00:00</updated>

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

		<entry>
		<author><name><![CDATA[RolandSt]]></name></author>
		<updated>2012-07-24T13:10:27+00:00</updated>

		<published>2012-07-24T13:10:27+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28378#p28378</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28378#p28378"/>
		<title type="html"><![CDATA[Errors in some btAssert expressions]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28378#p28378"><![CDATA[
Hello,<br><br>there are some incorrect assert expressions (wrong boolean logic) inside some Demos.<br><br>E.G. FractureDemo.cpp(275):<br>btAssert((<span style="color:#FF0000">!</span>m_shootBoxShape <span style="color:#FF0000">||</span> m_shootBoxShape-&gt;getShapeType() != INVALID_SHAPE_PROXYTYPE));<br>should be<br>btAssert((m_shootBoxShape &amp;&amp; m_shootBoxShape-&gt;getShapeType() != INVALID_SHAPE_PROXYTYPE));<br><br>There is a similar expression in btRigidBody* DemoApplication::localCreateRigidBody:<br>btAssert((<span style="color:#FF0000">!</span>shape <span style="color:#FF0000">||</span> shape-&gt;getShapeType() != INVALID_SHAPE_PROXYTYPE));<br>should be<br>btAssert((shape &amp;&amp; shape-&gt;getShapeType() != INVALID_SHAPE_PROXYTYPE));<br><br>...and other places.<br><br>You can show the error by setting the pointer to 0 (e.g. shape=0). The assertion won't come up.<br><br><span style="color:#FF0000">BTW</span>: What is the best way to report errors? I start using Bullet for a project.<br><br>Beside this error: I really appreciate Bullet Physics! Thanks to Erwin Coumans and all other contributers!<br><br>rolandSt<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9299">RolandSt</a> — Tue Jul 24, 2012 1:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
