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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2013-10-16T02:00:55+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Tony]]></name></author>
		<updated>2013-10-16T02:00:55+00:00</updated>

		<published>2013-10-16T02:00:55+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31944#p31944</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31944#p31944"/>
		<title type="html"><![CDATA[Re: Question about the velocity]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31944#p31944"><![CDATA[
<blockquote class="uncited"><div>[OT] Your question is out of theme here (I hope it will be moved to the "General Bullet Physics Support and Feedback forum").<br><blockquote class="uncited"><div>what's the unit of m_fVelocity?</div></blockquote> AFAIR rad/s (but I'm not 100% sure about it).<blockquote class="uncited"><div>what are the meanings about the velocity and angular velocity when i use:<br>btBody-&gt;getLinearVelocity();<br>btBody-&gt;getAngularVelocity();</div></blockquote>Well, as far as I remember:<br>btBody-&gt;getLinearVelocity() is the linear velocity (linear units, usually meters/second) measured in the world space (not in the coordinate space of btBody).<br>btBody-&gt;getAngularVelocity() is the angular velocity (angular units, rad/second) around the center of mass of btBody measured in the world space (not in the coordinate space of btBody).<br>m_fVelocity is the target angular velocity of the hinge motor (it's a scalar): this velocity is not the actual instant velocity: the motor tries to apply this velocity using the maxMotorForce (you used 50).<blockquote class="uncited"><div>if i want to keep the velocity of the hinge a constant, how can i get it?</div></blockquote>You can try increasing the max motor force if the constraint is weak (however this does not work in all cases). To make the hinge motor keep spinning, you can try setting the lower limit bigger than the upper limit (so that it's free to spin) and providing a suitable maxMotorForce (expecially if the masses of the bodies are big).</div></blockquote>Flix, Sorry to post it in an inappropriate forum, but i don't know how to move it to the right position with your reply.  i will pay much attention to it the next time.<br><br>Also thank you very much for your reply, with which i understand it better. <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=10433">Tony</a> — Wed Oct 16, 2013 2:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Flix]]></name></author>
		<updated>2013-10-15T10:20:28+00:00</updated>

		<published>2013-10-15T10:20:28+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31938#p31938</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31938#p31938"/>
		<title type="html"><![CDATA[Re: Question about the velocity]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31938#p31938"><![CDATA[
[OT] Your question is out of theme here (I hope it will be moved to the "General Bullet Physics Support and Feedback forum").<br><blockquote class="uncited"><div>what's the unit of m_fVelocity?</div></blockquote> AFAIR rad/s (but I'm not 100% sure about it).<blockquote class="uncited"><div>what are the meanings about the velocity and angular velocity when i use:<br>btBody-&gt;getLinearVelocity();<br>btBody-&gt;getAngularVelocity();</div></blockquote>Well, as far as I remember:<br>btBody-&gt;getLinearVelocity() is the linear velocity (linear units, usually meters/second) measured in the world space (not in the coordinate space of btBody).<br>btBody-&gt;getAngularVelocity() is the angular velocity (angular units, rad/second) around the center of mass of btBody measured in the world space (not in the coordinate space of btBody).<br>m_fVelocity is the target angular velocity of the hinge motor (it's a scalar): this velocity is not the actual instant velocity: the motor tries to apply this velocity using the maxMotorForce (you used 50).<blockquote class="uncited"><div>if i want to keep the velocity of the hinge a constant, how can i get it?</div></blockquote>You can try increasing the max motor force if the constraint is weak (however this does not work in all cases). To make the hinge motor keep spinning, you can try setting the lower limit bigger than the upper limit (so that it's free to spin) and providing a suitable maxMotorForce (expecially if the masses of the bodies are big).<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2180">Flix</a> — Tue Oct 15, 2013 10:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Tony]]></name></author>
		<updated>2013-10-15T07:12:54+00:00</updated>

		<published>2013-10-15T07:12:54+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31937#p31937</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31937#p31937"/>
		<title type="html"><![CDATA[Question about the velocity]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31937#p31937"><![CDATA[
hi,<br>I use a hinge constraint, and use hinge-&gt;enableAngularMotor(true,m_fVelocity,50) to enable the motor. However, what's the unit of  m_fVelocity? rad/s or degree/s or anything else? Also, what are the meanings about the velocity and angular velocity when i use:<br>btBody-&gt;getLinearVelocity(); <br>btBody-&gt;getAngularVelocity();<br><br>when i set the targetVelocity Value larger, the constraint seems weaker? Can anything be done to improve the result?<br><br>if i want to keep the velocity of the hinge a constant, how can i get it?<br><br>Thanks!<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=10433">Tony</a> — Tue Oct 15, 2013 7:12 am</p><hr />
]]></content>
	</entry>
	</feed>
