home *** CD-ROM | disk | FTP | other *** search
/ Sony Community Place / BROWSER / APP / cpb20prD1bx.exe / DATA.Z / buggy.wrl < prev    next >
Encoding:
Text File  |  1997-05-14  |  1.3 KB  |  55 lines

  1. #VRML V2.0 utf8
  2.  
  3. # "$Id: buggy.wrl,v 1.6 1997/05/14 09:14:10 ask Exp $";
  4. #
  5. # This file is conveted from VRML 1.0 to Moving Worlds.
  6. # Copyright(C) 1996, 1997 Sony Corporation. All rights reserved.
  7.  
  8. DEF BUGGY_TRANSFORM Transform {
  9.   children [
  10.     Transform {
  11.       translation 0 3.5 0
  12.       rotation    0 1 0 3.14
  13.       children [
  14.         DEF RIDING_VIEW Viewpoint {
  15.           position 0 0 0
  16.         # TRUEé═âfâtâHâïâgÆlé╚é╠é┼âRâüâôâgé╔é╖éΘ
  17.         # jump     TRUE
  18.         }
  19.       ]
  20.     }
  21.     DEF BUGGY_BIND_BODY Transform {
  22.       children [
  23.         #### BUGGY BODY ####
  24.         Inline { url "../models/buggybdy.wrl" }
  25.       ]
  26.     }
  27.     DEF TOUCH_SENSOR TouchSensor {}
  28.   ]
  29. }
  30.  
  31. DEF TIME_SENSOR TimeSensor {
  32.   cycleInterval 0.035
  33.   loop          TRUE
  34. }
  35.  
  36. DEF SCRIPT Script {
  37.   url "../scripts/buggy.class"
  38.  
  39.   eventIn SFTime      moveBuggy
  40.   eventIn SFTime      getOnOff
  41.  
  42.   eventOut SFRotation buggyRt
  43.   eventOut SFVec3f    buggyTr
  44.   eventOut SFBool     RidingView_bind
  45. }
  46.  
  47. ROUTE TOUCH_SENSOR.touchTime TO SCRIPT.getOnOff
  48. ROUTE TIME_SENSOR.cycleTime  TO SCRIPT.moveBuggy
  49.  
  50. ROUTE SCRIPT.buggyTr         TO BUGGY_TRANSFORM.set_translation
  51. ROUTE SCRIPT.buggyRt         TO BUGGY_TRANSFORM.set_rotation
  52.  
  53. ROUTE SCRIPT.RidingView_bind TO RIDING_VIEW.set_bind
  54.  
  55.