X3D TouchSensor
Tag Name
TouchSensor • Example
Tag Description
Tracks the location and state of the pointing device and detects when the user points at geometry contained by the TouchSensor node's parent group.
Component
Pointing Device Sensor
Tag Attributes
description
Field Type: SFString
Access Type: inputOutput
Default Value: Empty String
Value Range: ...
Description: Sets a textual description of the node.
enabled
Field Type: SFBool
Access Type: inputOut
Default Value: TRUE
Value Range: ...
Description: Turns user input tracking on or off.
hitNormal_changed
Field Type: SFVec3f
Access Type: outputOnly
Default Value: ...
Value Range: ...
Description: A generated event signaling the hitNormal has changed.
hitPoint_changed
Field Type: SFVec3f
Access Type: outputOnly
Default Value: ...
Value Range: ...
Description: A generated event signaling the hitPoint has changed.
hitTexCoord_changed
Field Type: SFVec2f
Access Type: outputOnly
Default Value: ...
Value Range: ...
Description: A generated event signaling the texture coordinates when a hitPoint has changed.
isActive
Field Type: SFBool
Access Type: outputOnly
Default Value: ...
Value Range: ...
Description: Fires a TRUE event when the mouse button is pressed if isOver is also TRUE.
isOver
Field Type: SFBool
Access Type: outputOnly
Default Value: ...
Value Range: ...
Description: Reports the state of the pointing device with regard to whether it is pointing towards the TouchSensor parent node geometry.
touchTime
Field Type: SFTime
Access Type: outputOnly
Default Value: ...
Value Range: ...
Description: Sets the time when a node was touched under the following conditions:
- The pointing device was pointing towards the geometry when isActive is TRUE
- The pointing device is currently pointing towards the geometry when isOver is TRUE
- The pointing device becomes deactivated triggering an isActive is FALSE event
metadata
Field Type: SFNode
Access Type: inputOutput
Default Value: NULL
Value Range: X3DMetadataObject
Description: Information about this node.