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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2020-07-23T03:36:51+00:00</updated>

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

		<entry>
		<author><name><![CDATA[water]]></name></author>
		<updated>2020-07-23T03:36:51+00:00</updated>

		<published>2020-07-23T03:36:51+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43047#p43047</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43047#p43047"/>
		<title type="html"><![CDATA[some problems in rotating the rigid body]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43047#p43047"><![CDATA[
Hello, I found some problems in rotating the rigid body.<br><br>First, I rotate the rigid body 45 degrees around the y-axis<br><img src="http://m.qpic.cn/psc?/V14M18zN39zIp3/ruAMsa53pVQWN7FLK88i5kh*985lAtoTuSUtBNtWAmIKhTh.Wc2bGEgxKSdOHDZhRWlz1ScVurlTKRhK95q5JgEXrHoTbbXiBXvbnrnZXTY!/b&amp;bo=owL4AQAAAAADB3o!&amp;rf=viewer_4" class="postimage" alt="Image">, <br>and then I rotate it 90 degrees on the x-axis<br><img src="http://m.qpic.cn/psc?/V14M18zN39zIp3/45NBuzDIW489QBoVep5mcWnIgwYKoibUczkcBzlpiZ7fu4gnEdN180uNYCEdUEbARfqcnrbrVyq9MjsNWRQbVjfGhrgAc4USJ014Npcf4*A!/b&amp;bo=dgK9AQAAAAADF*o!&amp;rf=viewer_4" class="postimage" alt="Image">.<br><br>But I found that the rigid body didn't rotate along the X axis the second time<br><img src="http://m.qpic.cn/psc?/V14M18zN39zIp3/45NBuzDIW489QBoVep5mcdrsewjIUMzYrDXsIZ0wieaJlEzGjOVzl9VMkU5CZkQNScKSIsAS9c0eTDBTVmV4pvCnuDhVmgDyc*E5mif.weo!/b&amp;bo=9gGdAQAAAAADF1k!&amp;rf=viewer_4" class="postimage" alt="Image"><br><div class="codebox"><p>Code: </p><pre><code>btQuaternion quaternion = btQuaternion(yaw * RADIANS_PER_DEGREE, pich * RADIANS_PER_DEGREE, roll* RADIANS_PER_DEGREE);trans.setRotation(quaternion);body-&gt;setCenterOfMassTransform(trans);</code></pre></div><div class="codebox"><p>Code: </p><pre><code>case Qt::Key_Z:pich += 0.2f;update();break;case Qt::Key_C:roll -= 0.25f;pich -= 0.2f;update();break;</code></pre></div>What should I do? Thank you very much.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13653">water</a> — Thu Jul 23, 2020 3:36 am</p><hr />
]]></content>
	</entry>
	</feed>
