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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2023-03-26T10:19:22+00:00</updated>

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

		<entry>
		<author><name><![CDATA[zhang_qiang]]></name></author>
		<updated>2023-03-26T10:19:22+00:00</updated>

		<published>2023-03-26T10:19:22+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44298#p44298</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44298#p44298"/>
		<title type="html"><![CDATA[How to create a elastic cylinder?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44298#p44298"><![CDATA[
Now, I can create a cylinder: <br><div class="codebox"><p>Code: </p><pre><code>import pybullet as pphysicsClient = p.connect(p.GUI)p.setGravity(0,0,-10)plane_shape = p.createCollisionShape(p.GEOM_PLANE)plane_body = p.createMultiBody(baseCollisionShapeIndex=plane_shape)cylinder = p.createCollisionShape(p.GEOM_CYLINDER, radius=0.1, height=2)body = p.createMultiBody(baseMass=1, baseCollisionShapeIndex=cylinder,                          basePosition=[0, 0, 1], baseOrientation=[0, 0, 0, 1])force_magnitude = 100 end_pos = [0.9, 0, 1] p.applyExternalForce(body, -1, forceObj=[force_magnitude, 0, 0], posObj=end_pos, flags=p.WORLD_FRAME)import timefor i in range(10000):    p.stepSimulation()    time.sleep(1. / 240.)p.disconnect()</code></pre></div>And, I expect the cylinder would turn tu be a arc when the force is add on the top of cylinder. Now, the cylinder is rigid. How can I make it to be elastic?<br><br>Any suggestion is appreciated~~~<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14579">zhang_qiang</a> — Sun Mar 26, 2023 10:19 am</p><hr />
]]></content>
	</entry>
	</feed>
