<?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/forum/9" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2026-02-26T17:30:19+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Cosmo]]></name></author>
		<updated>2026-02-26T17:30:19+00:00</updated>

		<published>2026-02-26T17:30:19+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44526#p44526</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44526#p44526"/>
		<title type="html"><![CDATA[General Bullet Physics Support and Feedback • info/help about capsule controller and 3d Animated Model]]></title>

					<category term="General Bullet Physics Support and Feedback" scheme="https://pybullet.org/Bullet/phpBB3/viewforum.php?f=9" label="General Bullet Physics Support and Feedback"/>
		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44526#p44526"><![CDATA[
Hi,<br>I'm working on a small 3d game engine project, OpenGL based. At present, I'm experimenting a little bit to integrate Bullet as physics subsystem.<br>My scene is composed of a skinned model with a bunch of animations (from Mixamo) and a box, scaled to resamble a ground plane.<br>In my Physics class I implemented a function, called AddCapsuleController(), within I create a capsule collision shape, set up radius and height, then I "link" rigid body and 3d object, using  an std::map data structure.<br>In the main loop, after  all the systems are updated, I invoke the SynchPhysAndRender function to allign physics with graphics.<br>But I'm encountering some issue with the Capsule Collider and the Animated model. There is something wrong in my attempt to put in synch rigidbody and the graphical rapresentation of the model. Infact, my player character is shifted some unit upward from the ground.<br>So I'm stuck,  but I've discovered a naive solution. It consists in an offset value (glm::vec3), which is used into the aformentioned SynchPhysAndRender(): the updated position of the associated rigidbody is integrated by the offset, so that the model is rendered in the correct spot, from the point of view of my 3d Scene.<br>Obviously, I think this isn't the right solution.<br>So I'd like to ask if someone could help me to solve that kind of issue. What could be wrong, conceptually speaking, in this kind of approach?<br>Thanks in advance and sorry if I can't be able to describe the problem quite good as I should like.<br><br>  Cosmo<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13273">Cosmo</a> — Thu Feb 26, 2026 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[goosesensor]]></name></author>
		<updated>2025-05-28T03:58:40+00:00</updated>

		<published>2025-05-28T03:58:40+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44521#p44521</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44521#p44521"/>
		<title type="html"><![CDATA[General Bullet Physics Support and Feedback • Re: m_collisionFlags !=btCollisionObject::CF_STATIC_OBJECT ?]]></title>

					<category term="General Bullet Physics Support and Feedback" scheme="https://pybullet.org/Bullet/phpBB3/viewforum.php?f=9" label="General Bullet Physics Support and Feedback"/>
		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44521#p44521"><![CDATA[
<blockquote class="uncited"><div>You should not set the linear velocity for static objects. Only dynamic and/or kinematic objects can ever move.<br>Thanks,<br>Erwin</div></blockquote>I have a question.  What is the meaning of setting velocity on a kinematic body?  The world will not move this body, only user code, correct?<br><br>Thanks,<br>Morgan<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=12815">goosesensor</a> — Wed May 28, 2025 3:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[otis]]></name></author>
		<updated>2025-05-02T07:25:34+00:00</updated>

		<published>2025-05-02T07:25:34+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44520#p44520</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44520#p44520"/>
		<title type="html"><![CDATA[General Bullet Physics Support and Feedback • Re: URDF importing correctly on one machine, incorrectly on another. Same code.]]></title>

					<category term="General Bullet Physics Support and Feedback" scheme="https://pybullet.org/Bullet/phpBB3/viewforum.php?f=9" label="General Bullet Physics Support and Feedback"/>
		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44520#p44520"><![CDATA[
<a href="https://sprunkigame.org/" class="postlink"><span style="color:#FFFFFF"><span style="font-size:1%;line-height:116%">Sprunki Game</span></span></a> Have you tried compiling Bullet from source with debug flags on Machine B to trace the import process?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14532">otis</a> — Fri May 02, 2025 7:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ajshort]]></name></author>
		<updated>2025-03-14T03:14:16+00:00</updated>

		<published>2025-03-14T03:14:16+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44516#p44516</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44516#p44516"/>
		<title type="html"><![CDATA[General Bullet Physics Support and Feedback • Re: Incorrect triangle-triangle collision detected in GI]]></title>

					<category term="General Bullet Physics Support and Feedback" scheme="https://pybullet.org/Bullet/phpBB3/viewforum.php?f=9" label="General Bullet Physics Support and Feedback"/>
		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44516#p44516"><![CDATA[
Hi Otis,<br><br>We found that if we modify <div class="codebox"><p>Code: </p><pre><code>btPrimitiveTriangle::overlap_test_conservative</code></pre></div> - it currently only checks if all points of one triangle lie one on the positive side of the plane formed by the other (line 82). When we modify this check to also check of the points are all on the negative side of the plane, this functions as expected.<br><br>I.e. change:<br><div class="codebox"><p>Code: </p><pre><code>if (dis0 &gt; 0.0f &amp;&amp; dis1 &gt; 0.0f &amp;&amp; dis2 &gt; 0.0f) return false;</code></pre></div>to<br><div class="codebox"><p>Code: </p><pre><code>if (dis0 &gt; 0.0f &amp;&amp; dis1 &gt; 0.0f &amp;&amp; dis2 &gt; 0.0f) return false;if (dis0 &lt; 0.0f &amp;&amp; dis1 &lt; 0.0f &amp;&amp; dis2 &lt; 0.0f) return false;</code></pre></div>This then seems to function as expected. We haven't been able to rigorously test this yet, and also it wouldn't take margins into account. Another potential fix would be to just check if any of the 3 points are within "margin" distance of the plane formed by the other triangle?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13486">ajshort</a> — Fri Mar 14, 2025 3:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[otis]]></name></author>
		<updated>2025-03-05T01:55:54+00:00</updated>

		<published>2025-03-05T01:55:54+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44514#p44514</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44514#p44514"/>
		<title type="html"><![CDATA[General Bullet Physics Support and Feedback • Re: crash at btConvexHullShape::localGetSupportingVertexWithoutMargin]]></title>

					<category term="General Bullet Physics Support and Feedback" scheme="https://pybullet.org/Bullet/phpBB3/viewforum.php?f=9" label="General Bullet Physics Support and Feedback"/>
		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44514#p44514"><![CDATA[
<blockquote class="uncited"><div>I downloaded the latest version and now it seems to be ok. I no longer get the crash <a href="https://mapsdrivingdirections.io/" class="postlink"><span style="color:#FFFFFF"><span style="font-size:1%;line-height:116%">Mapquest Directions</span></span></a></div></blockquote>that's awesome i will try to download it.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14532">otis</a> — Wed Mar 05, 2025 1:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lorde]]></name></author>
		<updated>2025-03-05T01:52:11+00:00</updated>

		<published>2025-03-05T01:52:11+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44513#p44513</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44513#p44513"/>
		<title type="html"><![CDATA[General Bullet Physics Support and Feedback • Re: SDF link collisions change robot behavior, despite no interaction with robot]]></title>

					<category term="General Bullet Physics Support and Feedback" scheme="https://pybullet.org/Bullet/phpBB3/viewforum.php?f=9" label="General Bullet Physics Support and Feedback"/>
		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44513#p44513"><![CDATA[
Is PyBullet recalculating physics differently when objects are moved manually in GUI mode?<br><a href="https://geometrydashlitepc.io/" class="postlink"><span style="color:#FFFFFF"><span style="font-size:1%;line-height:116%">Geometry Dash</span></span></a><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14540">lorde</a> — Wed Mar 05, 2025 1:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[otis]]></name></author>
		<updated>2025-03-04T09:06:29+00:00</updated>

		<published>2025-03-04T09:06:29+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44511#p44511</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44511#p44511"/>
		<title type="html"><![CDATA[General Bullet Physics Support and Feedback • Re: Incorrect triangle-triangle collision detected in GI]]></title>

					<category term="General Bullet Physics Support and Feedback" scheme="https://pybullet.org/Bullet/phpBB3/viewforum.php?f=9" label="General Bullet Physics Support and Feedback"/>
		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44511#p44511"><![CDATA[
Hey ajshort, in your minimal code isolating the false positive collision with those two triangles,<a href="https://retrobowl.college" class="postlink"><span style="color:#FFFFFF"><span style="font-size:1%;line-height:116%">Retro Bowl</span></span></a> have you tried tweaking the margin values or plane equations in `buildTriPlane()` to see if it resolves the SAT method’s over-detection?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14532">otis</a> — Tue Mar 04, 2025 9:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ajshort]]></name></author>
		<updated>2025-01-29T10:17:10+00:00</updated>

		<published>2025-01-29T10:17:10+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44510#p44510</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44510#p44510"/>
		<title type="html"><![CDATA[General Bullet Physics Support and Feedback • Incorrect triangle-triangle collision detected in GI]]></title>

					<category term="General Bullet Physics Support and Feedback" scheme="https://pybullet.org/Bullet/phpBB3/viewforum.php?f=9" label="General Bullet Physics Support and Feedback"/>
		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44510#p44510"><![CDATA[
Hi all! We're using gimpact for mesh-to-mesh collisions and have come across a case where two triangles are detecting a false positive collision. I've managed to isolate this pretty well to the two triangles in the STL file linked and pictured below - as you can see these aren't colliding, but are reported as a collision.<br><br><a href="https://gist.github.com/ajshort/f032837b4f9e56b75db29560d66acffa" class="postlink">https://gist.github.com/ajshort/f032837 ... 60d66acffa</a><br><br>I've made some minimal code inside the btGImpactCollisionAlgorithm class below which reports a collision between these two triangles manually defined. Does anyone have any advice or idea as to the cause? Also if I define "BULLET_TRIANGLE_COLLISION" so the GJK rather than SAT implementation is used, the result is as expected.<br><div class="codebox"><p>Code: </p><pre><code>btPrimitiveTriangle ta;ta.m_vertices[0] = btVector3(4049.92, 12169.6, 2252.3);ta.m_vertices[1] = btVector3(4083.47, 12166.3, 2258.52);ta.m_vertices[2] = btVector3(4050.78, 12191, 2238.16);ta.buildTriPlane();btPrimitiveTriangle tb;tb.m_vertices[0] = btVector3(5189.17, 11358, 500.004);tb.m_vertices[1] = btVector3(3162.31, 11358, 2724.61);tb.m_vertices[2] = btVector3(3162.31, 12642, 2724.61);tb.buildTriPlane();GIM_TRIANGLE_CONTACT gtc;if (ta.overlap_test_conservative(tb) &amp;&amp; ta.find_triangle_collision_clip_method(tb, gtc)) {std::cout &lt;&lt; "A collision has been detected using SAT method" &lt;&lt; std::endl;} else {std::cout &lt;&lt; "No collision detected using SAT method" &lt;&lt; std::endl;}</code></pre></div><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=2008" class="postimage" alt="Screenshot 2025-01-29 211040.png" onclick="viewableArea(this);" /></dt></dl></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13486">ajshort</a> — Wed Jan 29, 2025 10:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[shallshe]]></name></author>
		<updated>2024-01-12T01:28:31+00:00</updated>

		<published>2024-01-12T01:28:31+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44486#p44486</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44486#p44486"/>
		<title type="html"><![CDATA[General Bullet Physics Support and Feedback • Re: crash at btConvexHullShape::localGetSupportingVertexWithoutMargin]]></title>

					<category term="General Bullet Physics Support and Feedback" scheme="https://pybullet.org/Bullet/phpBB3/viewforum.php?f=9" label="General Bullet Physics Support and Feedback"/>
		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44486#p44486"><![CDATA[
I don't use btStaticPlaneShape but in the latest update this error has been fixed. <br><br><span style="font-size:1%;line-height:116%"><a href="https://geometrydashworld.net" class="postlink"><span style="color:#E1EBF2">geometry dash world</span></a></span><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14460">shallshe</a> — Fri Jan 12, 2024 1:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[joro4o]]></name></author>
		<updated>2024-01-05T19:17:28+00:00</updated>

		<published>2024-01-05T19:17:28+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44485#p44485</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44485#p44485"/>
		<title type="html"><![CDATA[General Bullet Physics Support and Feedback • SDF link collisions change robot behavior, despite no interaction with robot]]></title>

					<category term="General Bullet Physics Support and Feedback" scheme="https://pybullet.org/Bullet/phpBB3/viewforum.php?f=9" label="General Bullet Physics Support and Feedback"/>
		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44485#p44485"><![CDATA[
I created a robot that sends motor values to joints at each step of the simulation. I also generate a grid of SDF links. For some reason, the behavior changes when if I drag the SDF links in GUI mode, despite no interaction between them and the robot. Why could this be? I've included relevant code:<br><br>generate.py:<br>--------------------------------------------<br>import pyrosim.pyrosim as pyrosim<br>def Create_World():<br>    pyrosim.Start_SDF("world.sdf")<br><br>    for i in range(10):<br>        for j in range(10):<br>            pyrosim.Send_Cube(name=f"Box{i}", pos=[-10+i*1.5,10+j*1.5,.51] , size=[1,1,1])<br>    pyrosim.End()<br><br><br>def Create_Robot():<br>    pyrosim.Start_URDF("body.urdf")<br>    pyrosim.Send_Cube(name="Torso", pos=[0,0,1.5] , size=[1,1,1])<br>    pyrosim.Send_Joint( name = "Torso_FrontLeg" , parent= "Torso" , child = "FrontLeg" , type = "revolute", position = [0.5,0,1])<br>    pyrosim.Send_Cube(name="FrontLeg", pos=[0.5,0,-0.5] , size=[1,1,1])<br><br>    pyrosim.Send_Joint( name = "Torso_BackLeg" , parent= "Torso" , child = "BackLeg" , type = "revolute", position = [-0.5,0,1])<br>    pyrosim.Send_Cube(name="BackLeg", pos=[-0.5,0,-0.5] , size=[1,1,1])<br><br>    pyrosim.End()<br><br>Create_World()<br>Create_Robot()<br><br>simulate.py:<br>----------------------------------<br>import pybullet_data<br>import pybullet as p<br>import time<br>import pyrosim.pyrosim as pyrosim<br>import numpy as np<br>import random<br><br>physicsClient = p.connect(p.GUI)<br>p.setAdditionalSearchPath(pybullet_data.getDataPath())<br><br><br>p.configureDebugVisualizer(p.COV_ENABLE_GUI,0)    <br><br>p.setGravity(0,0,-9.<img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><br><br>planeId = p.loadURDF("plane.urdf")<br>p.loadSDF("world.sdf")<br>robotId = p.loadURDF("body.urdf")                   <br><br>pyrosim.Prepare_To_Simulate(robotId)             <br><br>backLegSensorValues = np.zeros(1000)<br>frontTargetAngles = np.zeros(1000)<br>backTargetAngles = np.zeros(1000)<br><br>frontAmplitude = np.pi/4<br>frontFrequency = 10<br>frontPhaseOffset = 0<br><br>backAmplitude =  np.pi/4<br>backFrequency = 10<br>backPhaseOffset =  np.pi/3<br><br>stateOfLinkZero = p.getBasePositionAndOrientation(robotId)                               <br>positionOfLinkZero = stateOfLinkZero[0]<br>xCoord = positionOfLinkZero[0]<br>print('Initial X Coordinate= ', xCoord)<br><br>for i in range(1000):<br><br>    p.stepSimulation()<br>    frontTargetAngles<em class="text-italics"> = frontAmplitude * np.sin(frontFrequency * i + frontPhaseOffset)<br>    backTargetAngles<em class="text-italics"> = backAmplitude * np.sin(backFrequency * i + backPhaseOffset)<br><br><br>    pyrosim.Set_Motor_For_Joint(<br>    bodyIndex = robotId,<br>    jointName = "Torso_FrontLeg",<br>    controlMode = p.POSITION_CONTROL,<br>    targetPosition = frontTargetAngles<em class="text-italics">,<br>    maxForce = 500)<br><br>    pyrosim.Set_Motor_For_Joint(<br>    bodyIndex = robotId,<br>    jointName = "Torso_BackLeg",<br>    controlMode = p.POSITION_CONTROL,<br>    targetPosition = backTargetAngles<em class="text-italics">,<br>    maxForce = 500)<br><br>    time.sleep(1/4000)<br><br><br>    if i%100 == 0 or i == 999:<br>        stateOfLinkZero = p.getBasePositionAndOrientation(robotId)                              <br>        positionOfLinkZero = stateOfLinkZero[0]<br>        xCoord = positionOfLinkZero[0]<br>        print('X Coordinate= ', xCoord)<br><br>p.disconnect()</em></em></em></em><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14457">joro4o</a> — Fri Jan 05, 2024 7:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
