media @ VU
web3d-x-touchsensor.vr
web3d-x-touchsensor.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
Web3D/VR
sticky touch
object proto
PROTO SphereTransform [
exposedField SFVec3f sphereTranslation 0 0 0
exposedField SFColor sphereColor 1 1 1
exposedField SFFloat sphereRadius 1.0
]
{
Transform {
translation IS sphereTranslation
children [
Shape {
appearance Appearance {
material Material {
diffuseColor IS sphereColor
}
}
geometry Sphere {
radius IS sphereRadius
}
}
]
}
}
the scene group
Group {
children [
Group {
children [
DEF TOUCH TouchSensor {
}
some objects
SphereTransform {
sphereRadius 3.0
sphereColor 1 1 1
}
]
}
DEF BALL2 SphereTransform {
sphereRadius 0.2
sphereColor 1 1 0
}
]
}
event routing
ROUTE TOUCH.hitPoint_changed TO BALL2.sphereTranslation
(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.