home *** CD-ROM | disk | FTP | other *** search
- #VRML V2.0 utf8
- #
- # This file is conveted from VRML 1.0 to Moving Worlds.
- # Copyright(C) 1996 Sony Corporation. All rights reserved.
-
-
-
- DEF BUGGY_TRANSFORM Transform {
- children [
-
- Transform {
- rotation 0.0 1.00 0.0 3.14
- translation 0.0 3.5 10.0
- children [
- DEF RIDING_VIEW Viewpoint{
- position 0 0 0
- jump TRUE}
- ]
- }
-
- DEF BUGGY_BIND_BODY Transform {
- children [
- #### BUGGY BODY ####
- Inline {
- url "../models/buggybdy.wrl"
- }
- ]
- }
-
- DEF TOUCH_SENSOR TouchSensor{}
-
- ]
- }
-
-
- DEF TIME_SENSOR TimeSensor{
- loop TRUE
- cycleInterval 0.035
- }
-
- DEF SCRIPT Script{
- url "../scripts/buggy.class"
-
- eventIn SFTime moveBuggy
- eventIn SFTime getOnOff
-
- eventOut SFRotation buggyRt
- eventOut SFVec3f buggyTr
- eventOut SFBool RidingView_bind
- }
-
-
- ROUTE TOUCH_SENSOR.touchTime TO SCRIPT.getOnOff
- ROUTE TIME_SENSOR.cycleTime TO SCRIPT.moveBuggy
-
- ROUTE SCRIPT.buggyTr TO BUGGY_TRANSFORM.set_translation
- ROUTE SCRIPT.buggyRt TO BUGGY_TRANSFORM.set_rotation
-
- ROUTE SCRIPT.RidingView_bind TO RIDING_VIEW.set_bind
-
-
-
-
-