File: compiled_script_tests.x3dv

package info (click to toggle)
castle-game-engine 6.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 194,520 kB
  • sloc: pascal: 364,585; ansic: 8,606; java: 2,851; objc: 2,601; cpp: 1,412; xml: 851; makefile: 725; sh: 563; php: 26
file content (43 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#X3D V3.2 utf8
PROFILE Interchange

Inline { url "bridge_final.x3dv" }

NavigationInfo {
  type ["FLY", "ANY"]
  speed 5
}

# With this Transform, we set up both initial camera location
# and at the same time our clickable text in front of it.
Transform {
  translation -46.300395965576172 -4.4862656593322754 4.8882923126220703
  rotation 0.0217522922903299 -0.9996275305747985 0.0164888687431812 1.2975844144821167
  children [
    Viewpoint {
      position 0 0 0
      description "default in compiled_script_tests" }

    Transform {
      translation -5 0 -10
      children Shape {
        appearance Appearance { material Material { diffuseColor 1 1 0 } }
        geometry Text { string [
          "Click this to send \"touch\" to Script" ] }
      }
    }

    DEF TouchStartAnim TouchSensor { }
  ]
}

DEF Scr Script {
  inputOnly SFTime touch
  url [ "ecmascript: blah blah", "some_script.js",
  "compiled:
initialize=touch_initialize
touch
" ]
}

ROUTE TouchStartAnim.touchTime TO Scr.touch