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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2017-12-13T09:49:50+00:00</updated>

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

		<entry>
		<author><name><![CDATA[yconst]]></name></author>
		<updated>2017-12-13T09:49:50+00:00</updated>

		<published>2017-12-13T09:49:50+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40240#p40240</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40240#p40240"/>
		<title type="html"><![CDATA[Re: Problem when importing mesh as ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40240#p40240"><![CDATA[
That did the trick, thanks!<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=12513">yconst</a> — Wed Dec 13, 2017 9:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2017-12-13T02:18:35+00:00</updated>

		<published>2017-12-13T02:18:35+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40237#p40237</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40237#p40237"/>
		<title type="html"><![CDATA[Re: Problem when importing mesh as ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40237#p40237"><![CDATA[
Use the flags=GEOM_FORCE_CONCAVE_TRIMESH in the createCollisionShape command.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Wed Dec 13, 2017 2:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[yconst]]></name></author>
		<updated>2017-12-12T23:40:52+00:00</updated>

		<published>2017-12-12T23:40:52+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40234#p40234</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40234#p40234"/>
		<title type="html"><![CDATA[Problem when importing mesh as ground]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40234#p40234"><![CDATA[
I'm trying to import a mesh to use as ground. I'm using the following code:<div class="codebox"><p>Code: </p><pre><code>        visualShift = [0, 0, 0]        shift = [0, 0, -0.1]        meshScale=[0.1, 0.1, 0.1]        path = os.path.abspath(os.path.dirname(__file__))        self.groundColId = p.createCollisionShape(shapeType=p.GEOM_MESH,                                                   fileName=os.path.join(path, "ground.obj"),                                                   collisionFramePosition=shift,                                                  meshScale=meshScale)        self.groundVisID = p.createVisualShape(shapeType=p.GEOM_MESH,                                             fileName=os.path.join(path, "ground.obj"),                                             rgbaColor=[1,1,1,1],                                            specularColor=[0.4,.4,0],                                            visualFramePosition=visualShift,                                            meshScale=meshScale)        self.groundId = p.createMultiBody(baseMass=0,                                              baseInertialFramePosition=[0,0,0],                                              baseCollisionShapeIndex=self.groundColId,                                               baseVisualShapeIndex=self.groundVisID,                                               basePosition=[0,0,0],                                               useMaximalCoordinates=True)</code></pre></div>The imported object looks ok (has bumps as it should) but it seems that the collision shape is flat.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1588" class="postimage" alt="Screen Shot 2017-12-13 at 01.34.17.png" onclick="viewableArea(this);" /></dt></dl></div>I am not importing anything else apart from this object and the robot seen in the image above.<br><br>Is there any mistake I am doing in importing the mesh?<br><br>Thank you<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=12513">yconst</a> — Tue Dec 12, 2017 11:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
