<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=R3d.Body%3AsetAngularLockAxisFactor</id>
	<title>R3d.Body:setAngularLockAxisFactor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=R3d.Body%3AsetAngularLockAxisFactor"/>
	<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=R3d.Body:setAngularLockAxisFactor&amp;action=history"/>
	<updated>2026-11-17T17:40:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=R3d.Body:setAngularLockAxisFactor&amp;diff=24928&amp;oldid=prev</id>
		<title>MoKaLux: Created page with &quot;&#039;&#039;&#039;Available since:&#039;&#039;&#039; Gideros 2020.2&lt;br/&gt; &#039;&#039;&#039;Class:&#039;&#039;&#039; R3d.Body&lt;br/&gt;  === Description === Restricts the angular motion of a rigid body along the world-space x, y and z ax...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=R3d.Body:setAngularLockAxisFactor&amp;diff=24928&amp;oldid=prev"/>
		<updated>2025-12-18T12:42:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2020.2&amp;lt;br/&amp;gt; &amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php/R3d.Body&quot; title=&quot;R3d.Body&quot;&gt;R3d.Body&lt;/a&gt;&amp;lt;br/&amp;gt;  === Description === Restricts the angular motion of a rigid body along the world-space x, y and z ax...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2020.2&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; [[R3d.Body]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Restricts the angular motion of a rigid body along the world-space x, y and z axes.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
r3d.Body:setAngularLockAxisFactor(lfx,lfy,lfz)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For instance, you can disable the rotation of a rigid body along the world-space Y axis by setting&lt;br /&gt;
the lock factor to zero for this axis.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;lfx&amp;#039;&amp;#039;&amp;#039;: (number) the new angular lock factor on the x axis, &amp;#039;&amp;#039;&amp;#039;default = 1 no lock&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;lfy&amp;#039;&amp;#039;&amp;#039;: (number) the new angular lock factor on the y axis, &amp;#039;&amp;#039;&amp;#039;default = 1 no lock&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;lfz&amp;#039;&amp;#039;&amp;#039;: (number) the new angular lock factor on the z axis, &amp;#039;&amp;#039;&amp;#039;default = 1 no lock&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Disable rotation along the Y axis&lt;br /&gt;
player1.body:setAngularLockAxisFactor(1, 0, 1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{R3d.Body}}&lt;/div&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
</feed>