<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    You don't have to be jerks about it. I've been scripting this crap
    for years.<br>
    A more constructive response would be something on the order of how
    to<br>
    apply some transform or something to the raw value coming from the
    PlaneSensor.<br>
    For your information, I DO have a script to filter out the unwanted
    axis, but simply doing<br>
    that as you say is not enough.<br>
    And did you know that if you set the min/max values to zero, you
    don't need a script<br>
    to set them to zero?<br>
    <br>
    Why do people not bother to think about what they say before hitting
    Send?<br>
    <br>
    <br>
    On 9/22/2010 4:55 PM, Pierre Côté wrote:
    <blockquote cite="mid:C8C00FAC.A11E%25pierre.cote@arc.ulaval.ca"
      type="cite">
      <title>Re: [X3D-Public] Any way to do a 'LineSensor' (Like
        PlaneSensor but in one dimension)</title>
      <font face="Calibri, Verdana, Helvetica, Arial"><span
          style="font-size: 12pt;">Because people do not know (always)
          how to do scripting... It’s a learning process...<br>
          pc<br>
          <br>
          Le 10-09-22 19:49, « Paul Aslin » <<a
            moz-do-not-send="true" href="fabricatorgeneral@yahoo.com">fabricatorgeneral@yahoo.com</a>>
          a écrit :<br>
          <br>
        </span></font>
      <blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span
            style="font-size: 12pt;"><br>
            <br>
            <br>
            --- On Thu, 23/9/10, Dave A <<a moz-do-not-send="true"
              href="dave@realmofconcepts.com">dave@realmofconcepts.com</a>>
            wrote:<br>
            <br>
            > From: Dave A <<a moz-do-not-send="true"
              href="dave@realmofconcepts.com">dave@realmofconcepts.com</a>><br>
            > Subject: [X3D-Public] Any way to do a 'LineSensor'
            (Like PlaneSensor but in one dimension)<br>
            > To:<br>
            > Cc: "<a moz-do-not-send="true"
              href="x3d-public@web3d.org">x3d-public@web3d.org</a>" <<a
              moz-do-not-send="true" href="x3d-public@web3d.org">x3d-public@web3d.org</a>><br>
            > Received: Thursday, 23 September, 2010, 8:27 AM<br>
            >  I need to be able to drag objects<br>
            > along one dimension only, and I'd like the interaction
            to<br>
            > look natural too.<br>
            ><br>
            > A PlaneSensor can let you drag things, and restrict<br>
            > *movement* using the min/max fields (set them to the
            same<br>
            > value, say, 0).<br>
            ><br>
            > The problem is, they *detect* mouse movement in both<br>
            > directions, and arbitrary movement always produces some<br>
            > movement in both directions. The result is, for
            example,<br>
            > moving the mouse up/down the screen produces movement<br>
            > right/left in the object. This is bad.<br>
            ><br>
            > So, is there any way to restrict the detection of mouse<br>
            > movement? Is there a different type of sensor
            available. I'm<br>
            > using Contact, maybe they have something handy?<br>
            <br>
            Just use a Script node to filter the output and set the
            unwanted value to zero.<br>
            <br>
            Why to people on this list demand new nodes for something
            that can be solved with a few lines of scripting ?<br>
            <br>
            <br>
                 <br>
            <br>
            <br>
            _______________________________________________<br>
            X3D-Public mailing list<br>
            <a moz-do-not-send="true" href="X3D-Public@web3d.org">X3D-Public@web3d.org</a><br>
            <a moz-do-not-send="true"
              href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
            <br>
          </span></font></blockquote>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
X3D-Public mailing list
<a class="moz-txt-link-abbreviated" href="mailto:X3D-Public@web3d.org">X3D-Public@web3d.org</a>
<a class="moz-txt-link-freetext" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
</pre>
    </blockquote>
  </body>
</html>