Course Index Section Start Previous Slide Next Slide 16

Techniques for Reactive content

Task: Detect the user's collision with geometry

Method: A Route from a Collision group node, possibly with a proxy

Key Point: Use a proxy to speed up collision calculations

Group {
  children DEF collider Collision {
    proxy       Transform {
      translation       0 0 0
      scale     0.0261 0.09 0.0207
      children  Shape {
        geometry        Box {
        }
      }
    }
    children        Shape {
      appearance        Appearance {
        :
        }

      }
      geometry  IndexedFaceSet {
      :
      }
    }
  }
}
ROUTE collider.collide TO MyScript.BooleanInput