-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilding.wrl
122 lines (71 loc) · 1.39 KB
/
building.wrl
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#VRML V2.0 utf8
#Definition of Proximity objects via specific range
Group {
children [
Transform {
translation 0 3 8
children DEF P1 ProximitySensor {
#enabled TRUE
#center 0 0 0
size 8 8 8
}
}
Transform {
translation 0 3 40
children DEF P2 ProximitySensor {
#enabled TRUE
#center 0 0 0
size 10 10 10
}
}
#Fog placement via specific color and range
DEF F1 Fog {
color 0.5 0.5 0.5 #gray
fogType "LINEAR"
visibilityRange 5
}
DEF F2 Fog {
color 0.8 0.8 0.8 #black
fogType "LINEAR"
visibilityRange 5
}
]
}
Transform {
children [
#Item placement via material, lightness, texture and appearence
DEF factory Shape {
appearance Appearance {
material DEF tall_building Material {
#diffuseColor 0 1 0
emissiveColor 0.6 0.5 0.4
shininess 0.8
transparency 0.4
}
texture ImageTexture {
url "structure/front.png"
repeatS FALSE
repeatT FALSE
}
}
geometry Box {
size 2 9 20
}
}
#Light camera placement with specific properties
DirectionalLight {
color 0.5 0.5 0.5
ambientIntensity 1
direction -.707 -.707 0
intensity 1
}
#Collision detection for building
Collision {
collide TRUE
}
]
translation -11 3 -5
}
#Attach fox objects for use into Proximity
ROUTE P1.isActive TO F1.set_bind
ROUTE P2.isActive TO F2.set_bind