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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2013-08-29T21:21:52+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Werner291]]></name></author>
		<updated>2013-08-29T21:21:52+00:00</updated>

		<published>2013-08-29T21:21:52+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31641#p31641</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31641#p31641"/>
		<title type="html"><![CDATA[upAxis in btHeightfieldTerrainShape constructor]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31641#p31641"><![CDATA[
Hello,<br><br>the construcor of btHeightfieldTerrainShape has an argument "upAxis".<br><br>It simply asks for an int without really saying what it wants.<br><br>According to the cpp file (see below), 0 = X, 1 = Y, 2 = Z, anything else is invalid.<br>Could this be added to the documentation / header comments above the constructor?<br><br>// determine min/max axis-aligned bounding box (aabb) values<br>switch (m_upAxis)<br>{<br>case 0:<br>{<br>m_localAabbMin.setValue(m_minHeight, 0, 0);<br>m_localAabbMax.setValue(m_maxHeight, m_width, m_length);<br>break;<br>}<br>case 1:<br>{<br>m_localAabbMin.setValue(0, m_minHeight, 0);<br>m_localAabbMax.setValue(m_width, m_maxHeight, m_length);<br>break;<br>};<br>case 2:<br>{<br>m_localAabbMin.setValue(0, 0, m_minHeight);<br>m_localAabbMax.setValue(m_width, m_length, m_maxHeight);<br>break;<br>}<br>default:<br>{<br>//need to get valid m_upAxis<br>btAssert(0 &amp;&amp; "Bad m_upAxis");<br>}<br>}<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9381">Werner291</a> — Thu Aug 29, 2013 9:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
