Web3D/VRML
[] readme course preface 1 2 3 4 5 6 7 reference examples resources

talk show tell print

x-touchsensor.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]

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
  
  


[] readme course preface 1 2 3 4 5 6 7 reference examples resources
eliens@cs.vu.nl

draft version 0.3 (17/9/2001)