#VRML V2.0 utf8 ## ##@* 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 ##