https://wiki.beyondunreal.com/w/index.php?action=history&feed=atom Rotator - Revision history 2017-11-18T02:56:33Z Revision history for this page on the wiki MediaWiki 1.25.1 https://wiki.beyondunreal.com/Rotator?diff=43269&oldid=prev Eliot at 09:31, 17 May 2010 2010-05-17T09:31:24Z <p></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 09:31, 17 May 2010</td> </tr><tr><td colspan="2" class="diff-lineno" id="L8" >Line 8:</td> <td colspan="2" class="diff-lineno">Line 8:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{{api-stub}}</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{{api-stub}}</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{navbox unrealscript}}</ins></div></td></tr> </table> Eliot https://wiki.beyondunreal.com/Rotator?diff=40553&oldid=prev Wormbo: created stub page 2010-01-15T20:23:23Z <p>created stub page</p> <p><b>New page</b></p><div>The type '''rotator''' is not a built-in type, but a [[struct]] defined in the {{classgames|Object}} class of all Unreal Engine games. Rotator values can describe an [[wp:orientation (geometry)|orientation]] in three-dimensional space (a &quot;rotation&quot;) or a change thereof. (for example a rotation rate) The Object class defines a number of operators and functions for working with rotator values.<br /> <br /> The three rotator components are '''pitch''' (think nodding to say &quot;yes&quot;), '''yaw''' (shaking your head to say &quot;no&quot;) and '''roll''' (tilting your head sideways while looking in a specific direction). Each of them is of type [[int]], so it can take values in the range -2147483648 to 2147483647. One full rotation (360 [[wp:degree (angle)|degree]]s or 2π [[wp:radian|radian]]s) around an axis corresponds to 65536 units. When determining an orientation from a rotator value, the following rules apply:<br /> # Start by facing in the direction of the positive X axis, with &quot;up&quot; corresponding to the positive Z axis. The Unreal Engine uses a left-handed Cartesian coordinate system, so by definition the positive Y axis is on the right side. (&quot;left-hand rule&quot;: if the index finger of your left hand points forward, the thumb upwards, then the middle finger must point to the right)<br /> # First apply the '''yaw''' component by rotating around the Z axis (the thumb) to the right for positive or left for negative values. (turn the index finger towards the middle finger for positive values)<br /> <br /> '''Important:''' Because rotator components are of type [[int]], precision is limited. Especially small rotation rates may be hard to achieve due to [[wp:Rounding#Basic rounding to integer|integer round down]]. Additionally, rotator components are compressed to the size of a byte for [[replication]], resulting in a loss of precision as if the components had been affected by the operation &lt;code&gt;component &amp; 0xFF00&lt;/code&gt;. For obvious reasons this makes replicating rotation rates as a rotator value almost impossible.<br /> <br /> {{api-stub}}</div> Wormbo