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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2020-06-23T02:11:59+00:00</updated>

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

		<entry>
		<author><name><![CDATA[water]]></name></author>
		<updated>2020-06-23T02:11:59+00:00</updated>

		<published>2020-06-23T02:11:59+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42948#p42948</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42948#p42948"/>
		<title type="html"><![CDATA[How to rotate a rigid body by changing the Euler angle]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42948#p42948"><![CDATA[
I set up a rigid body, and I hope that I can change his rotation by changing his Euler angle through the keyboard, and display him through OpenGL. What should I do?<div class="codebox"><p>Code: </p><pre><code>btQuaternion quaternion = btQuaternion(yaw, pich, roll);groundTransform.setRotation(quaternion);</code></pre></div><div class="codebox"><p>Code: </p><pre><code>glRotatef(trans.getRotation().getW(), trans.getRotation().getX(), trans.getRotation().getY(), trans.getRotation().getZ());</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13653">water</a> — Tue Jun 23, 2020 2:11 am</p><hr />
]]></content>
	</entry>
	</feed>
