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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2018-01-03T16:04:51+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2018-01-03T16:04:51+00:00</updated>

		<published>2018-01-03T16:04:51+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40282#p40282</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40282#p40282"/>
		<title type="html"><![CDATA[Re: can pybullet simulate air friction or other types of friction?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40282#p40282"><![CDATA[
You can change the linear damping to emulate very simple air resistence.<br>Use pybullet.changeDynamics for this, see the <a href="https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA/edit#" class="postlink">pybullet quickstart guide.</a><br><br>More advanced force fields need to be written as custom code, either in python or as a pybullet C/C++ plugin.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Wed Jan 03, 2018 4:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[deepcode]]></name></author>
		<updated>2017-12-29T02:40:52+00:00</updated>

		<published>2017-12-29T02:40:52+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40273#p40273</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40273#p40273"/>
		<title type="html"><![CDATA[can pybullet simulate air friction or other types of friction?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40273#p40273"><![CDATA[
I am trying to emulate a demo with objects falling out of the sky at different speeds:<br><a href="http://brm.io/matter-js/demo/#airFriction" class="postlink">http://brm.io/matter-js/demo/#airFriction</a><br>Reading through the documentation, It doesn't seem like pybullet has friction except for joint friction. is this possible to do in pybullet?<br>how can I change the parameters to the spheres so they fall at different speeds? <div class="codebox"><p>Code: </p><pre><code>import pybullet as pimport randomp.connect(p.GUI)p.setGravity(0,0,-0.001)p.setRealTimeSimulation(0)objects = {}def create_snow():  for i in range(50):    objects[i] = p.createCollisionShape(p.GEOM_SPHERE)    p.changeVisualShape(objects[i],-1,rgbaColor=[random.random(),random.random(),0,1])    p.createMultiBody(random.randint(1,10),objects[i],-1,basePosition=[random.randint(-10,10),random.randint(-10,10),random.randint(2,5)])for i in range(1000000000):  p.stepSimulation()  if i % 100000 == 0:    create_snow()    </code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=12337">deepcode</a> — Fri Dec 29, 2017 2:40 am</p><hr />
]]></content>
	</entry>
	</feed>
