<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Drag items in Stingray Forum (Read Only)</title>
    <link>https://forums.autodesk.com/t5/stingray-forum-read-only/drag-items/m-p/7032267#M8634</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a game that consists in moving boxes from one place to another but i don't know how to make the boxes move by dragging them with the mouse, i'm not a programmer nor a videogame developer so i'd really apreciate to get a flow control solution and not Lua lines if possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to everyone in advance!&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2017 08:01:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-21T08:01:17Z</dc:date>
    <item>
      <title>Drag items</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/drag-items/m-p/7032267#M8634</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a game that consists in moving boxes from one place to another but i don't know how to make the boxes move by dragging them with the mouse, i'm not a programmer nor a videogame developer so i'd really apreciate to get a flow control solution and not Lua lines if possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to everyone in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 08:01:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/drag-items/m-p/7032267#M8634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-21T08:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Drag items</title>
      <link>https://forums.autodesk.com/t5/stingray-forum-read-only/drag-items/m-p/7050146#M8743</link>
      <description>&lt;P&gt;The first step is to "pick" the box with the mouse. Stingray will cast a ray from the camera in the direction of the selected pixel and see what object it hits first. A tutorial can be found here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=h_niElj-YUU" target="_blank"&gt;https://www.youtube.com/watch?v=h_niElj-YUU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you identify the object of interest you need to implement logic to determine how it moves in 3D space as a result of 2D motion. Does it move along the surface of a sphere centered around the camera? Does it stay in the same Z plane and mouse movement only moves it in X or Y? Do you display a translation gizmo like in the Stingray editor to give the user fine grained control over the position of the object. While it may be possible to implement that logic in Flow, it is complex enough that I would recommend making use of LUA.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 17:52:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/stingray-forum-read-only/drag-items/m-p/7050146#M8743</guid>
      <dc:creator>__ben__</dc:creator>
      <dc:date>2017-04-28T17:52:17Z</dc:date>
    </item>
  </channel>
</rss>

