cylindersensor
CylinderSensor {
exposedField SFBool autoOffset TRUE
exposedField SFFloat diskAngle 0.262
exposedField SFBool enabled TRUE
exposedField SFFloat maxAngle -1
exposedField SFFloat minAngle 0
exposedField SFFloat offset 0
eventOut SFBool isActive
eventOut SFRotation rotation_changed
eventOut SFVec3f trackPoint_changed
}
- Used for rotating an object about one axis
- Geometry can be anything, not just cylinder
- offset field used to keep track of last drag effect
- autoOffset field set to FALSE means geometry jumps to initial postion each
new drag event
Example