HTML Encoding and Default Values⤴
<CylinderSensor
autoOffset='true'
axisRotation='0,1,0,0'
axisRotation='0'
axisRotation='-1'
axisRotation='pi/2'
enabled='true'
metadata='X3DMetadataObject'
offset='0'
></CylinderSensor>
Inheritance⤴
- Core/X3DNode(19)
- Core/X3DChildNode(12)
- Core/X3DSensorNode(3)
- X3DPointingDeviceSensorNode(2)
- X3DDragSensorNode(4)
- CylinderSensor
Fields⤴
These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via
DOM functions (i.e., using
setAttribute("myFieldName", "myFieldValue")
and
getAttribute("myFieldName")
).
Name | Type | Default Value | Range | Inheritance | Standard | Description |
---|---|---|---|---|---|---|
autoOffset | SFBool | true | X3DDragSensorNode | Determines whether offset values from previous drag gestures are remembered / accumulated. | ||
axisRotation | SFRotation | 0,1,0,0 | The local sensor coordinate system is created by additionally applying the axisRotation field value to the local coordinate system of the sensor node. | |||
axisRotation | SFFloat | 0 | The minAngle and maxAngle fields, given in radians, allow to constrain the rotation output of the cylinder sensor. If the value of maxAngle is smaller than the value of minAngle, output is not constrained. | |||
axisRotation | SFFloat | -1 | The minAngle and maxAngle fields, given in radians, allow to constrain the rotation output of the cylinder sensor. If the value of maxAngle is smaller than the value of minAngle, output is not constrained. | |||
axisRotation | SFFloat | pi/2 | Specifies whether the virtual cylinder's lateral surface or end-cap disks of virtual-geometry sensor are used for manipulation: If the vertical acute angle between the vector from the viewer to the point of intersection with the sensor geometry and the local Y axis of the cylinder is greater than or equal to the value of this field, the sensor uses a virtual cylinder to compute rotation output. Otherwise, if the angle is smaller than the value of this field, the sensor uses a virtual disk instead. This value of this field is specified in radians. ATTENTION: The value of this field is currently ignored. The cylinder sensor will always operate in cylinder mode. | |||
enabled | SFBool | true | Core/X3DSensorNode | Specifies whether this sensor is enabled. A disabled sensor does not produce any output. | ||
metadata | SFNode | X3DMetadataObject | Core/X3DNode | Field to add metadata information | ||
offset | SFFloat | 0 | Offset value, in radians, that is incorporated into the rotation output of the sensor. This value is automatically updated if the value of the autoOffset field is 'true'. |