home *** CD-ROM | disk | FTP | other *** search
/ Sony Community Place / Ufo.zip / ufo / entry.wrl next >
Text File  |  1997-05-14  |  1KB  |  51 lines

  1. #VRML V2.0 utf8
  2.  
  3. # Copyright(C) 1996,1997 Sony Corporation. All rights reserved.
  4.  
  5.  
  6. Anchor {
  7.     url "main.wrl"
  8.     description "UFO"
  9.     children [
  10.         DEF OBJ Transform{
  11.             scale 2.2 2.2 2.2
  12.             children [
  13.                 Transform{
  14.                     rotation 0.0 0.0 1.0 0.2
  15.                     children [
  16.                         Inline {
  17.                             url "models/ufo_mini.wrl"
  18.                         }
  19.                     ]
  20.                 }
  21.             ]
  22.         }
  23.     ]
  24. }
  25.  
  26. DEF TIME TimeSensor{
  27.     cycleInterval 6
  28.     loop TRUE
  29.     stopTime -1
  30. }
  31.  
  32. DEF OBJ_rotation OrientationInterpolator{
  33.     key [0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1,]
  34.     keyValue [0 1 0 0,
  35.               0 1 0 0.785, 
  36.               0 1 0 1.57,
  37.               0 1 0 2.355,
  38.               0 1 0 3.14,
  39.               0 1 0 -2.355,
  40.               0 1 0 -1.57,
  41.               0 1 0 -0.785,
  42.               0 1 0 0]
  43. }
  44.  
  45. ROUTE TIME.fraction_changed TO OBJ_rotation.set_fraction
  46. ROUTE OBJ_rotation.value_changed TO OBJ.set_rotation
  47.  
  48.  
  49.  
  50.  
  51.