media @ VU
web3d-complex.vr
web3d-complex.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
Web3D/VR
cone
group (with sensor)
Group {
children [
DEF TOUCH TouchSensor {}
DEF SENSOR PlaneSensor {
maxPosition 4.5 4.5
minPosition -4.5 -4.5
}
cone
DEF OBJECT Transform {
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 0 1
}
}
geometry Cone {
}
}
DEF HANDLER Script {
eventIn SFBool touch
url "javascript:
function touch(value) {
//print('touched');
}
"
}
]
}
]
}
event routing
ROUTE SENSOR.translation_changed TO OBJECT.set_translation
ROUTE TOUCH.isActive TO HANDLER.touch
(C) A. Eliëns
21/5/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.