boarder


  
  PROTO Boarder [
      exposedField SFVec3f position 0 0 0
      exposedField SFRotation orientation 0 1 0 0
  
      eventIn      SFBool bindViewpoint
  
      field MFNode board []
      field MFNode boot   []
  ] {
  
      Transform {
          translation IS position
          children [
              DEF VIEW1 Viewpoint {
                 bind IS bindViewpoint
                 position 0 6 4
                 orientation  1 0 0 -1.0
                 description "Cool Boarder 1"
              }
              DEF VIEW2 Viewpoint {
                 position -6 1.6 0
                 orientation  0 1 0  -1.57
                 description "Cool Boarder 2"
              }
          ]
      }
      Transform {
          translation IS position
          rotation IS orientation
          children [
              Group {
                  children IS board
              }
              Transform {
                  translation 0 0  -0.2
                  rotation 0 1 0 1.4
                  children IS boot
              }
              Transform {
                  translation 0 0 0.2 
                  rotation 0 1 0 1.57
                  children IS boot
              }
              Pants {
                  body Jacket {}
              }
          ]
      }
  }