window script


  
  DEF SCRIPT Script {
  
          eventIn SFFloat     aspectRatio
  
  
          eventIn  SFVec3f    setRotateTrans
          eventOut SFRotation rotation_changed
  
  
          eventIn  SFBool     doDrag
          eventIn  SFVec3f    setDragTrans
          eventOut SFVec3f    newPos
          eventOut SFRotation armRotation
          eventOut SFRotation correctionRotation
  
  
          field    SFVec3f    orgPos IS translation
          field    SFVec3f    pos           0 0 0
          field    SFRotation orgRot        0 0 1 0
          field    SFRotation correctionRot 0 0 1 0
  
  
          field    SFFloat    xCenter  0
          field    SFFloat    yCenter  0
          field    SFFloat    left    -2
          field    SFFloat    right    2
          field    SFFloat    top      0.95
          field    SFFloat    bottom  -0.95
          field    SFFloat    yfov  0.785398
          field    SFFloat    xfov  0.785398
          field    SFNode     node NULL