<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        For anyone else trying to get this to work, I had to change the following from:&lt;br&gt;&lt;br&gt;&apos; if it is equal to &quot;&quot; then no object was detected &lt;br&gt;if size &amp;lt;&amp;gt; &quot;&quot; then &lt;br&gt;&lt;br&gt;to:&lt;br&gt;&lt;br&gt;&apos; if it is equal to 0 then no object was detected &lt;br&gt;if size &amp;lt;&amp;gt; 0 then &lt;br&gt;&lt;br&gt;At least that is what I had to do to get it to work.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3166</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3166</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        I think the variables are getting cleared but you are not keeping yours in sync. You should not need the movement module with the following code&lt;br&gt;&lt;br&gt;l= GetVariable(&quot;L&quot;)&lt;br&gt;r= GetVariable(&quot;R&quot;)&lt;br&gt;m = GetVariable(&quot;M&quot;)&lt;br&gt;&lt;br&gt;&apos; get the size (width or height) of the current bounding box&lt;br&gt;size = GetVariable(&quot;COG_BOX_SIZE&quot;)&lt;br&gt;&lt;br&gt;&apos; if it is equal to &quot;&quot; then no object was detected&lt;br&gt;if size &amp;lt;&amp;gt; &quot;&quot; then&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&apos; get the horizontal center of gravity&lt;br&gt;&amp;nbsp;&amp;nbsp;cogX = GetVariable(&quot;COG_X&quot;)&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;if cogX &amp;lt; 20 then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;l = 1&lt;br&gt;&amp;nbsp;&amp;nbsp;elseif cogX &amp;gt; 300 then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;r = 1&lt;br&gt;&amp;nbsp;&amp;nbsp;elseif 150 &amp;lt; cogX &amp;lt; 170 then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;m = 1&lt;br&gt;&amp;nbsp;&amp;nbsp;end if &lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;L&quot;, l&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;R&quot;, r&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;M&quot;, m &lt;br&gt;&lt;br&gt;else&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;L&quot;, 0&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;R&quot;, 0&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;M&quot;, 0 &lt;br&gt;end if&lt;br&gt;&lt;br&gt;Basically if size = &quot;&quot; then you need to also null out your variables. Remember that without using the SetVariable routine your variables will not change ... when you use l,r,m in the VBScript module they are only local to that module and are not &quot;saved&quot; to other parts of RoboRealm.&lt;br&gt;&lt;br&gt;STeven.&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3166</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3166</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        sorry to post so many times&lt;br&gt;&lt;br&gt;as of now when movement is seen on screen all the variables become 1 at the same time and then turn to 0 all together when movement =0        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3166</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3166</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        SetVariable &quot;L&quot;, L&lt;br&gt;&lt;br&gt;i figured it out using Movement percentage... my variables still dont work right and I&apos;m hoping its just my understanding of the the setvariable command or something?&lt;br&gt;&lt;br&gt;SetVariable &quot;R&quot;, R&lt;br&gt;&lt;br&gt;SetVariable &quot;M&quot;, M&lt;br&gt;l= GetVariable(&quot;L&quot;)&lt;br&gt;r= GetVariable(&quot;R&quot;)&lt;br&gt;m = GetVariable(&quot;M&quot;)&lt;br&gt;move = GetVariable(&quot;MOVEMENT_PERCENT&quot;)&lt;br&gt;&lt;br&gt;&apos; get the size (width or height) of the current bounding box&lt;br&gt;size = GetVariable(&quot;COG_BOX_SIZE&quot;)&lt;br&gt;&lt;br&gt;&apos; if it is equal to &quot;&quot; then no object was detected&lt;br&gt;if size &amp;lt;&amp;gt; &quot;&quot; then&lt;br&gt;&lt;br&gt;&apos; get the horizontal center of gravity&lt;br&gt;cogX = GetVariable(&quot;COG_X&quot;)&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;if cogX &amp;lt; 20 then&lt;br&gt;l = 1&lt;br&gt;elseif cogX &amp;gt; 300 then&lt;br&gt;r = 1&lt;br&gt;elseif 150 &amp;lt; cogX &amp;lt; 170 then&lt;br&gt;m = 1&lt;br&gt;&lt;br&gt;end if&lt;br&gt;&lt;br&gt;&lt;br&gt;if move = 0 then&lt;br&gt;SetVariable &quot;L&quot;, 0&lt;br&gt;&lt;br&gt;SetVariable &quot;R&quot;, 0&lt;br&gt;&lt;br&gt;SetVariable &quot;M&quot;, 0&lt;br&gt;end if&lt;br&gt;end if&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3166</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3166</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>cog box size variable never resets to null?</title>
        <description>
        This is more a vb script question, how can I get a bunch of variables to reset after the cog module is no longer displaying on screen, basically after cog_box_size should be no existant, but it seems to stay its last value before it stopped tracking?        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3166</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3166</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
