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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2019-02-19T00:08:29+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2019-02-19T00:08:29+00:00</updated>

		<published>2019-02-19T00:08:29+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41873#p41873</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41873#p41873"/>
		<title type="html"><![CDATA[Re: Undesired behaviour when dropping cube]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41873#p41873"><![CDATA[
Yes, by default PyBullet adds some damping for stability. You can disable it like this:<br>p.changeDynamics(boxId,-1,linearDamping=0, angularDamping=0)<br><br>In addition, there is a maximum velocity of 100 units (m/s for linear velocity and radians/sec for angular velocity).<br>If this is an issue, you can compile PyBullet from source, and increase m_maxCoordinateVelocity in Bullet/src/BulletDynamics/Featherstone/btMultiBody.cpp<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Tue Feb 19, 2019 12:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[robotguy]]></name></author>
		<updated>2019-02-18T13:09:21+00:00</updated>

		<published>2019-02-18T13:09:21+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41872#p41872</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41872#p41872"/>
		<title type="html"><![CDATA[Undesired behaviour when dropping cube]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41872#p41872"><![CDATA[
Hello,<br><br>I recently started using PyBullet and want to thank you for this awesome piece of software. However, during some trials I found some weird behavior when dropping a simple cube from 100 meters: The velocity seems to stall asymptotically. This probably has to do with some stabilization of the simulation, but I could not find any information on this in the documentation. Could you give me a hint please? I attached the code and a plot.<br><br>Thank you in advance.<br><br>Best regards<br><img src="https://i.imgur.com/138Oi0g.png" class="postimage" alt="Image"><br><br><div class="codebox"><p>Code: </p><pre><code>import pybullet as pimport pybullet_dataimport numpy as npimport matplotlib.pyplot as plttimestep = 1 / 240g = -10physicsClient = p.connect(p.DIRECT)p.setAdditionalSearchPath(pybullet_data.getDataPath())p.setGravity(0, 0, g)planeId = p.loadURDF("plane.urdf")cubeStartPos = [0, 0, 100]cubeStartOrientation = p.getQuaternionFromEuler([0, 0, 0])boxId = p.loadURDF("cube.urdf", cubeStartPos, cubeStartOrientation)p.setTimeStep(timestep)simulated_velocity_list = []physical_velocity_list = []time = []i = 0while True:    time.append(i * timestep)    physical_velocity_list.append(g * i * timestep)    simulated_velocity_list.append(p.getBaseVelocity(boxId)[0][2])    if (p.getBasePositionAndOrientation(boxId)[0][2] &lt;= 0.05):        print(i * timestep)        break    p.stepSimulation()    i += 1plt.plot(time, simulated_velocity_list)plt.plot(time, physical_velocity_list)plt.grid()plt.xlabel("Time [s]")plt.ylabel("Velocity [mps]")plt.legend(["PyBullet", "v=a t"])plt.show()p.disconnect()</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13216">robotguy</a> — Mon Feb 18, 2019 1:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
