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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2006-09-23T13:54:08+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Jack]]></name></author>
		<updated>2006-09-23T13:54:08+00:00</updated>

		<published>2006-09-23T13:54:08+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1879#p1879</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1879#p1879"/>
		<title type="html"><![CDATA[They are falling under the plane :(]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1879#p1879"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>I found! It is working now. My testbed is working!!!<br>I'll be creating my new game with BULLET now!<br><br>BULLET is GREAT!  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote>What was wrong?  Maybe someone else can benefit from what you learned?</div></blockquote>That was my stupid error:<br><br>void ATOM::getWorldScaling(float&amp; scaleX,float&amp; scaleY,float&amp; scaleZ)<br>{<br>const D3DXMATRIXA16 *const pmat = &amp;_pRenderAtom-&gt;Final();<br><br>scaleX = 1;//pmat-&gt;_11;<br>scaleY = 1;//pmat-&gt;_22;<br>scaleZ = 1;//pmat-&gt;_33;<br>}<br><br>I took scale factors from 11,22,33 of the World Martix. It is of course wrong, if rotation is present.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=772">Jack</a> — Sat Sep 23, 2006 1:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SteveBaker]]></name></author>
		<updated>2006-09-23T13:24:48+00:00</updated>

		<published>2006-09-23T13:24:48+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1877#p1877</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1877#p1877"/>
		<title type="html"><![CDATA[They are falling under the plane :(]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1877#p1877"><![CDATA[
<blockquote class="uncited"><div>I found! It is working now. My testbed is working!!!<br>I'll be creating my new game with BULLET now!<br><br>BULLET is GREAT!  :D</div></blockquote>What was wrong?  Maybe someone else can benefit from what you learned?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=726">SteveBaker</a> — Sat Sep 23, 2006 1:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jack]]></name></author>
		<updated>2006-09-23T10:31:19+00:00</updated>

		<published>2006-09-23T10:31:19+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1876#p1876</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1876#p1876"/>
		<title type="html"><![CDATA[They are falling under the plane :(]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1876#p1876"><![CDATA[
I found! It is working now. My testbed is working!!!<br>I'll be creating my new game with BULLET now!<br><br>BULLET is GREAT!  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=772">Jack</a> — Sat Sep 23, 2006 10:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2006-08-31T19:48:21+00:00</updated>

		<published>2006-08-31T19:48:21+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1628#p1628</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1628#p1628"/>
		<title type="html"><![CDATA[They are falling under the plane :(]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1628#p1628"><![CDATA[
This assert should never fail. It's probably best to try to solve this offline, with a source sample.<br>Thanks,<br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Thu Aug 31, 2006 7:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jack]]></name></author>
		<updated>2006-08-31T19:07:17+00:00</updated>

		<published>2006-08-31T19:07:17+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1626#p1626</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1626#p1626"/>
		<title type="html"><![CDATA[They are falling under the plane :(]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1626#p1626"><![CDATA[
<blockquote class="uncited"><div>Without a sample file that is difficult to determine. Do you have a modified Bullet demo that shows similar behaviour?</div></blockquote>No. Demos from the "bullet-1.9\msvc\8" folder work OK.<br><blockquote class="uncited"><div>Many things can be wrong. What is gravity? How large are the objects? What is the collision margin? Do you initialize the inertia tensor? What is the timestep?</div></blockquote>1) gravity = 9.8<br>2) BoxShape object (half size = 25), ConvexTriangleMeshShape approx. the size of the box object.<br>3) margin? what is it? I do not set it in my program...<br>4) inertia tensor comes from CalculateLocalInertia<br>5) timestep is constant = 1/60. By the way if I set variable timestep, ojects do not move at all (they freeze in the space)<br><br>Here is some fragments of my code:<br><br>PHYSICS::PHYSICS()<br>{<br>SimdVector3 worldAabbMin(-30000,-30000,-30000);<br>SimdVector3 worldAabbMax(30000,30000,30000);<br><br>_pDispatcher= new CollisionDispatcher;<br>_pBroadPhase= new AxisSweep3(worldAabbMin, worldAabbMax, 32766, 65535);<br>_pPhysEnv= new CcdPhysicsEnvironment(_pDispatcher, _pBroadPhase);<br>}<br><br>void ATOM::Initialize(SHAPE *const pShape, RENDER::ATOM *const pRenderAtom, bool bStatic)<br>{<br>assert(pShape);<br>assert(pRenderAtom);<br><br>_pRenderAtom = pRenderAtom;<br><br>_ci.m_MotionState= this;<br>_ci.m_collisionShape= pShape-&gt;m_pCollisionShape;<br>if(bStatic)<br>{<br>_ci.m_collisionFlags= CollisionObject::isStatic;<br>_ci.m_mass= 0;<br>_ci.m_collisionFilterGroup= CcdConstructionInfo::StaticFilter;<br>_ci.m_collisionFilterMask= CcdConstructionInfo::AllFilter ^ CcdConstructionInfo::StaticFilter;<br>}<br>else<br>{<br>SimdVector3 LocalIn;<br>pShape-&gt;m_pCollisionShape-&gt;CalculateLocalInertia(1, LocalIn);<br><br>_ci.m_localInertiaTensor= LocalIn;<br>_ci.m_mass= 1;<br>_ci.m_gravity= SimdVector3(0, -9.8f, 0);<br>_ci.m_collisionFlags= 0;<br>}<br>_pPhyCtrl = new CcdPhysicsController(_ci);<br>}<br><br>void STATIC_PLANE_SHAPE::Initialize(const __m128 &amp;vNormal)<br>{<br>m_pCollisionShape = new StaticPlaneShape(*(SimdVector3*)&amp;vNormal, vNormal.m128_f32[3]);<br>}<br><br>void BOX_SHAPE::Initialize(const __m128 &amp;vHalfSize)<br>{<br>m_pCollisionShape = new BoxShape(*(SimdVector3*)&amp;vHalfSize);<br>}<br><blockquote class="uncited"><div>Also, the continuous collision detection (CCD) is not enabled by default, which means there is no safety for fast moving objects (moving faster then their own size in one timestep). This CCD is work in progress, and should prevent objects going though eachother.</div></blockquote>Objects fall from height = 100, 150 and 225 (starting speed=0). Their speeds at the surface are small. Sometimes objects do not fall thru the surface plane. They can lie on the surface but approx. 50% of the object is under the surface. <br>How to enable CCD?<br><br>Also sometimes<br>assert(proxy0 != proxy1);<br>from the<br>OverlappingPairCache::AddOverlappingPair(BroadphaseProxy* proxy0,BroadphaseProxy* proxy1)<br>occurs<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=772">Jack</a> — Thu Aug 31, 2006 7:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2006-08-31T17:25:34+00:00</updated>

		<published>2006-08-31T17:25:34+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1625#p1625</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1625#p1625"/>
		<title type="html"><![CDATA[They are falling under the plane :(]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1625#p1625"><![CDATA[
Without a sample file that is difficult to determine. Do you have a modified Bullet demo that shows similar behaviour?<br><br>Many things can be wrong. What is gravity? How large are the objects? What is the collision margin? Do you initialize the inertia tensor? What is the timestep?<br><br>Also, the continuous collision detection (CCD) is not enabled by default, which means there is no safety for fast moving objects (moving faster then their own size in one timestep). This CCD is work in progress, and should prevent objects going though eachother.<br><br>Thanks,<br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Thu Aug 31, 2006 5:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jack]]></name></author>
		<updated>2006-08-31T12:08:44+00:00</updated>

		<published>2006-08-31T12:08:44+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1624#p1624</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1624#p1624"/>
		<title type="html"><![CDATA[They are falling under the plane :(]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=1624#p1624"><![CDATA[
Situation:<br>Static plane (StaticPlaneShape). Objects (BoxShape, ConvexHullShape or ConvexTriangleMeshShape) are falling from some height down to the plane. They hit plane, simi-penetrate, reflect....hit again....roll/jump...simi-penetrate....and fall completly under the plane <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>If two objects collide, they penetrate deeply. They nearly do not sense each other.<br><br>Samples seem to work OK.<br><br>What can be wrong in my program?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=772">Jack</a> — Thu Aug 31, 2006 12:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
