{"id":3297,"date":"2021-02-21T22:29:45","date_gmt":"2021-02-22T05:29:45","guid":{"rendered":"http:\/\/artistedancediva.co.uk\/wp\/?p=3297"},"modified":"2021-02-24T10:20:36","modified_gmt":"2021-02-24T17:20:36","slug":"palette-reference-06-thrower-part-3-rotation","status":"publish","type":"post","link":"https:\/\/artistedancediva.co.uk\/wp\/?p=3297","title":{"rendered":"Palette Reference \u2013 06 \u2013  Thrower &#8211; Part 3 &#8211; Rotation"},"content":{"rendered":"<p>There are 2 ways to specify a rotation amount. <strong><span style=\"color: #ff0000;\">AngularVelocity<\/span> <\/strong>and<br \/>\n<span style=\"color: #0000ff;\"><strong>TargetOmega<\/strong><\/span>.\u00a0<strong><span style=\"color: #0000ff;\">TargetOmega<\/span> <\/strong>occurs <strong><span style=\"color: #ff0000;\">client-side.<\/span><\/strong><\/p>\n<h3>******************<br \/>\nAngularVelocity<\/h3>\n<p>Basically, a rotation amount determines how <span style=\"color: #ff00ff;\"><strong>fast<\/strong><\/span> a rotation occurs around one or more axis. (x,y,z).\u00a0 Each axis has its own speed.\u00a0 It is in radians per second.\u00a0 There are about 57 degrees in a radian so if you want one revolution per second then you need about 6 radians or more specifically 2-pi which is 6.283.<\/p>\n<p>So to rotate around an x axis once per second you would need an <strong>AngularVelocity<\/strong> of &lt;6.283,0,0&gt;<br \/>\nTwice per second would be:\u00a0 &lt;12.566,0,0&gt;<\/p>\n<p>The chosen <strong><span style=\"color: #ff00ff;\">axis<\/span><\/strong>, usually just 1, determines whether the flight is more frisbee-like or more end-of-end (think football field-goal flight) depending on orientation.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>SetAngularVelocity<\/strong> <\/span><strong>ignores mass.<\/strong><br \/>\n<span style=\"color: #ff0000;\"><strong>SetAngularVelocity <span style=\"color: #000000;\">will slow down overtime.<\/span><\/strong><\/span><\/p>\n<h3>******************<br \/>\nTargetOmega<\/h3>\n<p><span style=\"color: #0000ff;\"><strong>SetTargetOmega<\/strong> <span style=\"color: #000000;\">will <span style=\"color: #ff00ff;\"><strong>NOT<\/strong> <\/span>slow down overtime. Its rotation is constant.<\/span><\/span><\/p>\n<p>Example:<br \/>\n<span style=\"color: #0000ff;\"><strong>TargetOmega<\/strong><\/span>,<strong><span style=\"color: #ff00ff;\">&lt;1.0,0,0&gt;<\/span><\/strong>,<strong><span style=\"color: #008000;\">6.283185<span style=\"color: #800080;\">,<span style=\"color: #0000ff;\">2<\/span><\/span><\/span><\/strong><\/p>\n<p>Where:<br \/>\n<span style=\"color: #ff00ff;\">&lt;1,0,0&gt; =\u00a0 the axis of rotation, usually\u00a0 just one. &lt;-1,0,0&gt; will reverse the direction of the rotation\/spin.<\/span><\/p>\n<p><strong><span style=\"color: #008000;\">6.283185 = is the radians of revolution per second<\/span><\/strong><\/p>\n<p><span style=\"color: #0000ff;\">2<\/span><b> = gain which is a multiplier of the radians.\u00a0 So 2 is twice 6.23185 or 2 revolutions per second.\u00a0 a value of zero would stop the revolution.<\/b><\/p>\n<h3>******************<\/h3>\n<p>We need to flip a switch to tell the Thrower program with method we are choosing.\u00a0 We cannot choose both.<\/p>\n<p>The switches in the <strong><span style=\"color: #0000ff;\">*thrower nc<\/span> <\/strong>are called:<br \/>\n<span style=\"color: #ff0000;\"><strong>SetAngularVelocity<\/strong><\/span>,<strong>(on\/off)<\/strong><br \/>\n<span style=\"color: #0000ff;\"><strong>SetTargetOmega<\/strong><\/span>,<strong>(on\/off)<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are 2 ways to specify a rotation amount. AngularVelocity and TargetOmega.\u00a0TargetOmega occurs client-side. ****************** AngularVelocity Basically, a rotation amount determines how fast a rotation occurs around one or more axis. (x,y,z).\u00a0 Each axis has its own speed.\u00a0 It is in radians per second.\u00a0 There are about 57 degrees in a radian so if you &hellip; <a href=\"https:\/\/artistedancediva.co.uk\/wp\/?p=3297\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Palette Reference \u2013 06 \u2013  Thrower &#8211; Part 3 &#8211; Rotation<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,4],"tags":[],"_links":{"self":[{"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3297"}],"collection":[{"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3297"}],"version-history":[{"count":18,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3297\/revisions"}],"predecessor-version":[{"id":3329,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3297\/revisions\/3329"}],"wp:attachment":[{"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}