script


  
  DEF SCRIPT Script {
      directOutput TRUE
  
      field    SFNode  me        USE SCRIPT
  
      field    SFTime  oldTick   0
      eventIn  SFTime  tick
  
      field    SFInt32 oldMask   0
      eventIn  SFNode  onEvent
  
      eventOut SFVec3f    position_changed
      eventOut SFRotation orientation_changed
      eventOut SFInt32    flame_choice
      eventOut SFInt32    hide_text
  
      field SFVec3f    speed       0 0 0
      field SFVec3f    position    0 0 0
      field SFVec3f    direction   0 0 1
      field SFRotation orientation 0 0 1 0
  
      field SFRotation rotA         0 0 1 0
      field SFRotation rotB         0 0 1 0
      field SFVec3f    defDirection 0 0 1
      field SFVec3f    yAxis        0 1 0
      field SFVec3f    up           0 1 0