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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2014-10-18T17:08:27+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Alberto GarcÃ­a]]></name></author>
		<updated>2014-10-18T12:34:56+00:00</updated>

		<published>2014-10-18T12:34:56+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=34193#p34193</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=34193#p34193"/>
		<title type="html"><![CDATA[Re: How to set a rigid body in 3d position [SOLVED]]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=34193#p34193"><![CDATA[
Hi have solved it by myself with the following code:<br><div class="codebox"><p>Code: </p><pre><code>            btVector3 position( this-&gt;lastPostion.X( ), this-&gt;lastPostion.Y( ), this-&gt;lastPostion.Z( ) );btTransform trans;this-&gt;ball-&gt;bulletRigid-&gt;getMotionState()-&gt;getWorldTransform( trans );trans.setOrigin( position );this-&gt;ball-&gt;bulletRigid-&gt;clearForces();this-&gt;ball-&gt;bulletRigid-&gt;setLinearVelocity( btVector3( 0, 0, 0) );this-&gt;ball-&gt;bulletRigid-&gt;setAngularVelocity( btVector3( 0, 0, 0) );this-&gt;ball-&gt;bulletRigid-&gt;setWorldTransform( trans );</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11050">Alberto GarcÃ­a</a> — Sat Oct 18, 2014 12:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alberto GarcÃ­a]]></name></author>
		<updated>2014-10-18T17:08:27+00:00</updated>

		<published>2014-10-16T11:03:22+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=34170#p34170</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=34170#p34170"/>
		<title type="html"><![CDATA[How to set a rigid body in 3d position [SOLVED]]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=34170#p34170"><![CDATA[
I'm programming a simple minigolf, game, and I try to set the ball ( rigid body ) in the 0,0,0 position when the ball Y position is &lt; -1. This is my code:<br><div class="codebox"><p>Code: </p><pre><code>            btVector3 position( 0, 0,0 );this-&gt;ball-&gt;bulletRigid-&gt;getWorldTransform().setIdentity();this-&gt;ball-&gt;bulletRigid-&gt;getWorldTransform().setOrigin(position);</code></pre></div>But the sphere is not set on 0,0,0 instead of this the ball disappears.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11050">Alberto GarcÃ­a</a> — Thu Oct 16, 2014 11:03 am</p><hr />
]]></content>
	</entry>
	</feed>
