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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2021-10-06T23:09:24+00:00</updated>

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

		<entry>
		<author><name><![CDATA[drleviathan]]></name></author>
		<updated>2021-10-06T23:09:24+00:00</updated>

		<published>2021-10-06T23:09:24+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43638#p43638</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43638#p43638"/>
		<title type="html"><![CDATA[Re: A problem with a sphere rolling on terrain]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43638#p43638"><![CDATA[
The rotation out is in <strong class="text-strong">Quaternion</strong> form, which is a 4D object, not a <strong class="text-strong">Vector3</strong>.  Your could should look more like:<div class="codebox"><p>Code: </p><pre><code>private static Quat4f getBallRotation(RigidBody ball){    Quat4f out = new Quat4f();    ball.getMotionState().getWorldTransform(new Transform()).getRotation(out);    return out;}</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11033">drleviathan</a> — Wed Oct 06, 2021 11:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[itay.green]]></name></author>
		<updated>2021-10-06T19:40:09+00:00</updated>

		<published>2021-10-06T19:40:09+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43636#p43636</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43636#p43636"/>
		<title type="html"><![CDATA[A problem with a sphere rolling on terrain]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43636#p43636"><![CDATA[
Hello, <br>I've been using the java port of Bullet and have been having problems with the sphere shape.<br>In my game, the sphere does interact with the terrain (doesn't go through it) but the rolling effect is glitching.<br>would love to get some help on how to get the proper rotation values for OpenGL;<br>this is my code for the rotation, would appreciate any sort of help (:<br>private static Vector3f getBallRotation(RigidBody ball)<br>{<br>Quat4f out = new Quat4f();<br>ball.getMotionState().getWorldTransform(new Transform()).getRotation(out);<br>return new Vector3f(out.x, out.y, out.z);<br>}<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14107">itay.green</a> — Wed Oct 06, 2021 7:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
