[X3D-Public] Sensors: PlaneSensor XYZ and combined Sensors

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Tue Jul 26 17:14:40 PDT 2011


a mouse only has 2 degrees of freedom, so only one of two planes can be addressed at a time.  the mouse input provides 2D input that is then interpreted as X-Y (PlaneSensor) or else r-theta (CylinderSensor, SphereSensor).

to get 3D spatial movement, you need a joystick or space mouse or wand or somesuch that the browser can get 3D data inputs from.

that said, you might use KeySensor to pick alt/shift/ctrl (or another hotkey, or touchable geometry, or whatever) as a trigger to switch activation enabled between the two PlaneSensors of interest. 

sounds interesting, good luck!
________________________________________
From: x3d-public-bounces at web3d.org [x3d-public-bounces at web3d.org] on behalf of Dave A [dave at realmofconcepts.com]
Sent: Tuesday, July 26, 2011 2:50 PM
To: x3d-public at web3d.org
Subject: Re: [X3D-Public] Sensors: PlaneSensor XYZ and combined Sensors

While at it, I've been in need of a way to orient them such that I'm
always dragging in the plane of the screen, such that up/down on screen
is Y in world (assuming I'm facing normally), and X drags on the XZ
plane depending on rotation. And should be arbitrary orientation.

On 7/26/2011 2:32 PM, Dark Before Dawn wrote:
> Hi guys,
> is there a way to combine two planesensors to achive a dragging
> behaviour in XZ plane and also +-Y direction? My current
> implementation uses rotations to switch between XZ movement and Y
> movement.
>
> I also wonder if there is a way to combine multiple sensors like a
> planesensor to drag objects around and a sphere sensor to rotate the
> same object? While writing this mail I perceived that touchsensor
> toggles could be an option.
> Cheers Darky
>
> _______________________________________________
> X3D-Public mailing list
> X3D-Public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1390 / Virus Database: 1518/3789 - Release Date: 07/26/11
>
>

_______________________________________________
X3D-Public mailing list
X3D-Public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org


More information about the X3D-Public mailing list