ProximitySensor node
This is what the Ascii text in the VRML files
looks like after converting from MAX:
#VRML V2.0 utf8
# Produced by 3D Studio MAX VRML 2.0 exporter, Version 1
# MAX File: proximitysensor16.max, Date: Fri Oct 18 09:53:48 1996
DEF face Viewpoint {
position 0.03362 27 126.6
orientation 0 1.002 0 -0.008112
fieldOfView 1.049
description "face"
}
DEF NavInfo01 NavigationInfo {
avatarSize [0, 1.6, 0.75]
headlight TRUE
speed 5
type "WALK"
visibilityLimit 0
}
DEF Sphere-ROOT Transform {
translation 0.3255 19.87 -1.187
rotation 0 -1 0 -1.571
scale 1 1 1
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.01961 0.4667 0.3255
shininess 0.4
transparency 0
}
}
geometry Sphere { radius 19.89 }
}
]
}
DEF Cone-ROOT Transform {
translation -0.1168 20.59 -1.179
rotation 0.666 0.6478 0.3699 -3.884
scale 1 1 1
scaleOrientation 0.6829 0.55 -0.4808 -0.854
children [
DEF Cone-TIMER TimeSensor { loop FALSE cycleInterval 3.333 },
DEF Cone-POS-INTERP PositionInterpolator {
key [0, 0.03, 0.06, 0.09, 0.12, ]
keyValue [-0.1168 20.59 -1.179, -0.1168 20.59 3.188, -0.1168 20.59 7.555,
-0.1168 20.59 11.92, -0.1168 20.59 13.38, ] },
Transform {
translation 0 10 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.2314 0.2745 0.5765
shininess 0.4
transparency 0
}
}
geometry Cone { bottomRadius 5 height 20 }
}
] }
]
}
ROUTE Cone-TIMER.fraction_changed TO Cone-POS-INTERP.set_fraction
ROUTE Cone-POS-INTERP.value_changed TO Cone-ROOT.set_translation
DEF mouth-ROOT Transform {
translation 0.07848 8.476 1.172
children [
DEF mouth-TIMER TimeSensor { loop FALSE cycleInterval 3.333 },
DEF mouth-POS-INTERP PositionInterpolator {
key [0, 0.03, 0.06, 0.09, 0.12, ]
keyValue [0.07848 8.476 1.172, 0.07848 8.476 5.016, 0.07848 8.476 8.86,
0.07848 8.476 12.7, 0.07848 8.476 13.99, ] },
DEF Box01-ROOT Transform {
translation 0.3341 -1.368 -1.172
rotation -1 0 0 -1.571
scale 1 1 1
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.3451 0.3451 0.8824
}
}
geometry DEF Box01-FACES IndexedFaceSet {
ccw TRUE
solid TRUE
coord DEF Box01-COORD Coordinate { point [
-4 2.343 0.5, 4 2.343 0.5, -4 2.343 -0.5, 4 2.343 -0.5]
}
coordIndex [
0, 1, 3, -1,
3, 2, 0, -1]
}
}
]
},
DEF Box02-ROOT Transform {
translation -5.444 -0.115 -1.172
rotation -0.9289 0.2618 0.2618 -1.644
scale 1 1 1
scaleOrientation -0.9735 0 0.2288 -0.1836
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.3451 0.3451 0.8824
}
}
geometry DEF Box02-FACES IndexedFaceSet {
ccw TRUE
solid TRUE
coord DEF Box02-COORD Coordinate { point [
-2.5 2.343 0.5, 2.5 2.343 0.5, -2.5 2.343 -0.5, 2.5 2.343 -0.5]
}
coordIndex [
0, 1, 3, -1,
3, 2, 0, -1]
}
}
]
},
DEF Box03-ROOT Transform {
translation 6.095 -0.07237 -1.172
rotation -0.9246 -0.2694 -0.2694 -1.649
scale 1 1 1
scaleOrientation 0.4024 -0.9146 0.03894 -0.5683
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.3451 0.3451 0.8824
}
}
geometry DEF Box03-FACES IndexedFaceSet {
ccw TRUE
solid TRUE
coord DEF Box03-COORD Coordinate { point [
-2.5 2.343 0.5, 2.5 2.343 0.5, -2.5 2.343 -0.5, 2.5 2.343 -0.5]
}
coordIndex [
0, 1, 3, -1,
3, 2, 0, -1]
}
}
]
}
]
}
ROUTE mouth-TIMER.fraction_changed TO mouth-POS-INTERP.set_fraction
ROUTE mouth-POS-INTERP.value_changed TO mouth-ROOT.set_translation
DEF eyes-ROOT Transform {
translation 0.0766 30.64 0
children [
DEF eyes-TIMER TimeSensor { loop FALSE cycleInterval 3.333 },
DEF eyes-POS-INTERP PositionInterpolator {
key [0, 0.03, 0.06, 0.09, 0.12, ]
keyValue [0.0766 30.64 0, 0.0766 30.64 4.846, 0.0766 30.64 9.693,
0.0766 30.64 14.54, 0.0766 30.64 16.15, ] },
DEF Sphere01-ROOT Transform {
translation -7.024 -0.06882 0
rotation 0.5774 0.5774 0.5774 -4.189
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.2314 0.2745 0.5765
shininess 0.4
transparency 0
}
}
geometry Sphere { radius 2.898 }
}
]
},
DEF Sphere02-ROOT Transform {
translation 7.024 0.06891 0
rotation 0.5774 0.5774 0.5774 -4.189
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.2314 0.2745 0.5765
shininess 0.4
transparency 0
}
}
geometry Sphere { radius 2.898 }
}
]
},
DEF lids-ROOT Transform {
translation 0.3451 31.72 0
children [
DEF lids-POS-INTERP PositionInterpolator {
key [0, 0.03, 0.06, 0.09, 0.12, 0.15, 0.18, 0.21, 0.24, 0.27,
0.3, 0.33, 0.36, ]
keyValue [0.3451 31.72 0, 0.3594 30.69 8.549, 0.3736 26.79 17.58,
0.3879 20.2 25.13, 0.4021 12.36 29.96, 0.4164 5.292 32.08,
0.4306 0.8109 32.55, 0.4401 0.3545 32.56, 0.4401 6.18 31.95,
0.4401 16.22 28.18, 0.4401 26.03 19.44, 0.4401 31.59 7.539,
0.4401 32.48 0, ] },
DEF lids-ROT-INTERP OrientationInterpolator {
key [0, 0.03, 0.06, 0.09, 0.12, 0.15, 0.18, 0.21, 0.24, 0.27,
0.3, 0.33, 0.36, ]
keyValue [0 0 0 0, -1 0 0 -0.2657, -1 0 0 -0.5702, -1 0 0 -0.8818,
-1 0 0 -1.169, -1 0 0 -1.399, -1 0 0 -1.541,
-1 0 0 -1.557, -1 0 0 -1.377, -1 0 0 -1.046,
-1 0 0 -0.64, -1 0 0 -0.2336, 0 0 0 0, ] },
DEF Sphere03-ROOT Transform {
translation -7.322 -31.76 0
rotation 0.5774 0.5774 0.5774 -4.189
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.102 0.102 0.102
shininess 0.4
transparency 0
}
}
geometry DEF Sphere03-FACES IndexedFaceSet {
ccw TRUE
solid TRUE
coord DEF Sphere03-COORD Coordinate { point [
0 2.898 0, 1.109 2.677 0, 1.025 2.677 -0.4244,
0.7842 2.677 -0.7842, 0.4244 2.677 -1.025,
0 2.677 -1.109, 0 2.677 1.109, 0.4244 2.677 1.025,
0.7842 2.677 0.7842, 1.025 2.677 0.4244, 2.049 2.049 0,
1.893 2.049 -0.7842, 1.449 2.049 -1.449, 0.7842 2.049 -1.893,
0 2.049 -2.049, 0 2.049 2.049, 0.7842 2.049 1.893,
1.449 2.049 1.449, 1.893 2.049 0.7842, 2.677 1.109 0,
2.474 1.109 -1.025, 1.893 1.109 -1.893, 1.025 1.109 -2.474,
0 1.109 -2.677, 0 1.109 2.677, 1.025 1.109 2.474,
1.893 1.109 1.893, 2.474 1.109 1.025, 2.898 0 0,
2.677 0 -1.109, 2.049 0 -2.049, 1.109 0 -2.677,
0 0 -2.898, 0 0 2.898, 1.109 0 2.677, 2.049 0 2.049,
2.677 0 1.109, 2.677 -1.109 0, 2.474 -1.109 -1.025,
1.893 -1.109 -1.893, 1.025 -1.109 -2.474, 0 -1.109 -2.677,
0 -1.109 2.677, 1.025 -1.109 2.474, 1.893 -1.109 1.893,
2.474 -1.109 1.025, 2.049 -2.049 0, 1.893 -2.049 -0.7842,
1.449 -2.049 -1.449, 0.7842 -2.049 -1.893,
0 -2.049 -2.049, 0 -2.049 2.049, 0.7842 -2.049 1.893,
1.449 -2.049 1.449, 1.893 -2.049 0.7842, 1.109 -2.677 0,
1.025 -2.677 -0.4244, 0.7842 -2.677 -0.7842,
0.4244 -2.677 -1.025, 0 -2.677 -1.109, 0 -2.677 1.109,
0.4244 -2.677 1.025, 0.7842 -2.677 0.7842,
1.025 -2.677 0.4244, 0 -2.898 0]
}
coordIndex [
0, 1, 2, -1,
0, 2, 3, -1, 0, 3, 4, -1, 0, 4, 5, -1, 0, 6, 7, -1,
0, 7, 8, -1, 0, 8, 9, -1, 0, 9, 1, -1, 1, 10, 11, -1,
1, 11, 2, -1, 2, 11, 12, -1, 2, 12, 3, -1,
3, 12, 13, -1, 3, 13, 4, -1, 4, 13, 14, -1,
4, 14, 5, -1, 6, 15, 16, -1, 6, 16, 7, -1,
7, 16, 17, -1, 7, 17, 8, -1, 8, 17, 18, -1,
8, 18, 9, -1, 9, 18, 10, -1, 9, 10, 1, -1,
10, 19, 20, -1, 10, 20, 11, -1, 11, 20, 21, -1,
11, 21, 12, -1, 12, 21, 22, -1, 12, 22, 13, -1,
13, 22, 23, -1, 13, 23, 14, -1, 15, 24, 25, -1,
15, 25, 16, -1, 16, 25, 26, -1, 16, 26, 17, -1,
17, 26, 27, -1, 17, 27, 18, -1, 18, 27, 19, -1,
18, 19, 10, -1, 19, 28, 29, -1, 19, 29, 20, -1,
20, 29, 30, -1, 20, 30, 21, -1, 21, 30, 31, -1,
21, 31, 22, -1, 22, 31, 32, -1, 22, 32, 23, -1,
24, 33, 34, -1, 24, 34, 25, -1, 25, 34, 35, -1,
25, 35, 26, -1, 26, 35, 36, -1, 26, 36, 27, -1,
27, 36, 28, -1, 27, 28, 19, -1, 28, 37, 38, -1,
28, 38, 29, -1, 29, 38, 39, -1, 29, 39, 30, -1,
30, 39, 40, -1, 30, 40, 31, -1, 31, 40, 41, -1,
31, 41, 32, -1, 33, 42, 43, -1, 33, 43, 34, -1,
34, 43, 44, -1, 34, 44, 35, -1, 35, 44, 45, -1,
35, 45, 36, -1, 36, 45, 37, -1, 36, 37, 28, -1,
37, 46, 47, -1, 37, 47, 38, -1, 38, 47, 48, -1,
38, 48, 39, -1, 39, 48, 49, -1, 39, 49, 40, -1,
40, 49, 50, -1, 40, 50, 41, -1, 42, 51, 52, -1,
42, 52, 43, -1, 43, 52, 53, -1, 43, 53, 44, -1,
44, 53, 54, -1, 44, 54, 45, -1, 45, 54, 46, -1,
45, 46, 37, -1, 46, 55, 56, -1, 46, 56, 47, -1,
47, 56, 57, -1, 47, 57, 48, -1, 48, 57, 58, -1,
48, 58, 49, -1, 49, 58, 59, -1, 49, 59, 50, -1,
51, 60, 61, -1, 51, 61, 52, -1, 52, 61, 62, -1,
52, 62, 53, -1, 53, 62, 63, -1, 53, 63, 54, -1,
54, 63, 55, -1, 54, 55, 46, -1, 64, 56, 55, -1,
64, 57, 56, -1, 64, 58, 57, -1, 64, 59, 58, -1,
64, 61, 60, -1, 64, 62, 61, -1, 64, 63, 62, -1,
64, 55, 63, -1]
}
}
]
},
DEF Sphere04-ROOT Transform {
translation 6.569 -31.7 0
rotation 0.5774 0.5774 0.5774 -4.189
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.102 0.102 0.102
shininess 0.4
transparency 0
}
}
geometry DEF Sphere04-FACES IndexedFaceSet {
ccw TRUE
solid TRUE
coord DEF Sphere04-COORD Coordinate { point [
0 2.898 0, 1.109 2.677 0, 1.025 2.677 -0.4244,
0.7842 2.677 -0.7842, 0.4244 2.677 -1.025,
0 2.677 -1.109, 0 2.677 1.109, 0.4244 2.677 1.025,
0.7842 2.677 0.7842, 1.025 2.677 0.4244, 2.049 2.049 0,
1.893 2.049 -0.7842, 1.449 2.049 -1.449, 0.7842 2.049 -1.893,
0 2.049 -2.049, 0 2.049 2.049, 0.7842 2.049 1.893,
1.449 2.049 1.449, 1.893 2.049 0.7842, 2.677 1.109 0,
2.474 1.109 -1.025, 1.893 1.109 -1.893, 1.025 1.109 -2.474,
0 1.109 -2.677, 0 1.109 2.677, 1.025 1.109 2.474,
1.893 1.109 1.893, 2.474 1.109 1.025, 2.898 0 0,
2.677 0 -1.109, 2.049 0 -2.049, 1.109 0 -2.677,
0 0 -2.898, 0 0 2.898, 1.109 0 2.677, 2.049 0 2.049,
2.677 0 1.109, 2.677 -1.109 0, 2.474 -1.109 -1.025,
1.893 -1.109 -1.893, 1.025 -1.109 -2.474, 0 -1.109 -2.677,
0 -1.109 2.677, 1.025 -1.109 2.474, 1.893 -1.109 1.893,
2.474 -1.109 1.025, 2.049 -2.049 0, 1.893 -2.049 -0.7842,
1.449 -2.049 -1.449, 0.7842 -2.049 -1.893,
0 -2.049 -2.049, 0 -2.049 2.049, 0.7842 -2.049 1.893,
1.449 -2.049 1.449, 1.893 -2.049 0.7842, 1.109 -2.677 0,
1.025 -2.677 -0.4244, 0.7842 -2.677 -0.7842,
0.4244 -2.677 -1.025, 0 -2.677 -1.109, 0 -2.677 1.109,
0.4244 -2.677 1.025, 0.7842 -2.677 0.7842,
1.025 -2.677 0.4244, 0 -2.898 0]
}
coordIndex [
0, 1, 2, -1,
0, 2, 3, -1, 0, 3, 4, -1, 0, 4, 5, -1, 0, 6, 7, -1,
0, 7, 8, -1, 0, 8, 9, -1, 0, 9, 1, -1, 1, 10, 11, -1,
1, 11, 2, -1, 2, 11, 12, -1, 2, 12, 3, -1,
3, 12, 13, -1, 3, 13, 4, -1, 4, 13, 14, -1,
4, 14, 5, -1, 6, 15, 16, -1, 6, 16, 7, -1,
7, 16, 17, -1, 7, 17, 8, -1, 8, 17, 18, -1,
8, 18, 9, -1, 9, 18, 10, -1, 9, 10, 1, -1,
10, 19, 20, -1, 10, 20, 11, -1, 11, 20, 21, -1,
11, 21, 12, -1, 12, 21, 22, -1, 12, 22, 13, -1,
13, 22, 23, -1, 13, 23, 14, -1, 15, 24, 25, -1,
15, 25, 16, -1, 16, 25, 26, -1, 16, 26, 17, -1,
17, 26, 27, -1, 17, 27, 18, -1, 18, 27, 19, -1,
18, 19, 10, -1, 19, 28, 29, -1, 19, 29, 20, -1,
20, 29, 30, -1, 20, 30, 21, -1, 21, 30, 31, -1,
21, 31, 22, -1, 22, 31, 32, -1, 22, 32, 23, -1,
24, 33, 34, -1, 24, 34, 25, -1, 25, 34, 35, -1,
25, 35, 26, -1, 26, 35, 36, -1, 26, 36, 27, -1,
27, 36, 28, -1, 27, 28, 19, -1, 28, 37, 38, -1,
28, 38, 29, -1, 29, 38, 39, -1, 29, 39, 30, -1,
30, 39, 40, -1, 30, 40, 31, -1, 31, 40, 41, -1,
31, 41, 32, -1, 33, 42, 43, -1, 33, 43, 34, -1,
34, 43, 44, -1, 34, 44, 35, -1, 35, 44, 45, -1,
35, 45, 36, -1, 36, 45, 37, -1, 36, 37, 28, -1,
37, 46, 47, -1, 37, 47, 38, -1, 38, 47, 48, -1,
38, 48, 39, -1, 39, 48, 49, -1, 39, 49, 40, -1,
40, 49, 50, -1, 40, 50, 41, -1, 42, 51, 52, -1,
42, 52, 43, -1, 43, 52, 53, -1, 43, 53, 44, -1,
44, 53, 54, -1, 44, 54, 45, -1, 45, 54, 46, -1,
45, 46, 37, -1, 46, 55, 56, -1, 46, 56, 47, -1,
47, 56, 57, -1, 47, 57, 48, -1, 48, 57, 58, -1,
48, 58, 49, -1, 49, 58, 59, -1, 49, 59, 50, -1,
51, 60, 61, -1, 51, 61, 52, -1, 52, 61, 62, -1,
52, 62, 53, -1, 53, 62, 63, -1, 53, 63, 54, -1,
54, 63, 55, -1, 54, 55, 46, -1, 64, 56, 55, -1,
64, 57, 56, -1, 64, 58, 57, -1, 64, 59, 58, -1,
64, 61, 60, -1, 64, 62, 61, -1, 64, 63, 62, -1,
64, 55, 63, -1]
}
}
]
}
]
}
]
}
ROUTE eyes-TIMER.fraction_changed TO eyes-POS-INTERP.set_fraction
ROUTE eyes-POS-INTERP.value_changed TO eyes-ROOT.set_translation
ROUTE eyes-TIMER.fraction_changed TO lids-POS-INTERP.set_fraction
ROUTE lids-POS-INTERP.value_changed TO lids-ROOT.set_translation
ROUTE eyes-TIMER.fraction_changed TO lids-ROT-INTERP.set_fraction
ROUTE lids-ROT-INTERP.value_changed TO lids-ROOT.set_rotation
DEF ProxSensor01-ROOT Transform {
translation 0.8242 21.17 -99.01
rotation -1 0 0 -1.571
scale 1 1 1
children [
DEF ProxSensor01 ProximitySensor {
enabled TRUE
center 0 100 0
size 100 200 100
}
]
}
ROUTE ProxSensor01.enterTime TO mouth-TIMER.startTime
ROUTE ProxSensor01.enterTime TO eyes-TIMER.startTime
ROUTE ProxSensor01.enterTime TO Cone-TIMER.startTime

dFORM |