<html>
    <head />
        <body>
            Hi<br /><br />Do not know: do you mean dragging *in* the plane of the screen (like a HUD), or do you mean *parallel to* the plane of the screen, but at a fixed coordinate within the scenery?<br /><br />For first case here a little example of a rotary knob within a HUD, which was used to control some parameter of the scene (not shown here).<br /><br /><Transform DEF='HudTransform'><br />    <Switch DEF='KnobSwitch'><br />        <Transform DEF='KnobTransform'<br />                   rotation='1 0 0 1.570796'<br />                   translation='0.2 0.25 -1'><br />            <Transform DEF='KnobRotation'><br />                <Shape DEF='Knob'><br />                    <Cylinder height='0.01' radius='0.05'/><br />                    <Appearance><br />                        <Material /><br />                        <ImageTexture url='"knob.jpg"' /><br />                    </Appearance><br />                </Shape><br />            </Transform><br />            <CylinderSensor DEF='KnobCS' <br />                            description='click and drag to rotate knob' <br />                            minAngle='-1.570796' <br />                            maxAngle='1.570796' <br />                            diskAngle='1.570796' /><br />            <ROUTE fromField='rotation_changed' fromNode='KnobCS' <br />                   toField='rotation' toNode='KnobRotation'/><br />        </Transform><br />    </Switch><br /></Transform><br /><ProximitySensor DEF='HudProximity' size='1000000 1000000 1000000' /><br /><ROUTE fromField='position_changed' fromNode='HudProximity' <br />       toField='translation' toNode='HudTransform' /><br /><ROUTE fromField='orientation_changed' fromNode='HudProximity' <br />       toField='rotation' toNode='HudTransform' /><br /><br />Should be easy to change from cylinder sensor to plane sensor<br /><br />Hope it helps :)<br />Christoph<br /><br /><blockquote type="cite">
            <p>-------- Original-Nachricht --------<br />Datum: Sat, 22 Oct 2011 16:40:19 -0700<br />Von: Dave A <dave@realmofconcepts.com><br />An: 'x3d public mailing list' <x3d-public@web3d.org><br />Betreff: [X3D-Public] Dragging things in screen-space<br /><br /></p>
            Does anyone know of a way to drag something (like using a PlaneSensor) <br />such that the result is being able to drag an object in the plane of the <br />screen, no matter the orientation?<br /><br />I would have thought putting a drag sensor into a billboard <br />(camera-facing) would get me close, but it's got problems. So I'm <br />looking for a script or proto that can accomplish this. Or any tips on <br />extensions like Device or Mouse sensor. Any platform, any player. Thanks<br /><br />Dave A.<br /><br />_______________________________________________<br />X3D-Public mailing list<br />X3D-Public@web3d.org<br />http://web3d.org/mailman/listinfo/x3d-public_web3d.org<br /></blockquote>
        <div class="signature"><br /><br /><br />-- <br />NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!            <br />Jetzt informieren: http://www.gmx.net/de/go/freephone</div></body>
    </html>