1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> |
4 | <head> |
5 | <meta name='title' content=' WheelsRearLeft.x3d '/> |
6 | <meta name='description' content='The left side rear wheel and axle perform Gear Up or Gear Down animation when user click the text, and wheels spin when a cursor is over the wheels.'/> |
7 | <meta name='creator' content='Etsuko Lippi'/> |
8 | <meta name='created' content='4 September 2001'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='generator' content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
11 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18BlueAngelUnitedStates/WheelsRearLeft.x3d '/> |
12 | <meta name='subject' content='rear left wheel'/> |
13 | <meta name='license' content='../../license.html'/> |
14 | </head> |
15 | <Scene> |
16 | <WorldInfo title='WheelsRearLeft.x3d'/> |
17 | <Background skyColor='0.7 0.7 0.7'/> |
18 | <Group> |
19 |
<!-- ROUTE information for WheelsRearTransform node:
[from AxleGearUpInterpolator2.value_changed to set_rotation
]
[from AxleGearDownInterpolator2.value_changed to set_rotation
]
-->
<Transform DEF='WheelsRearTransform' center='0 3.8 0'> |
20 |
<!-- ROUTE information for WheelsRearAxleTransform node:
[from AxleGearUpInterpolator.value_changed to set_rotation
]
[from AxleGearDownInterpolator.value_changed to set_rotation
]
-->
<Transform DEF='WheelsRearAxleTransform' center='0.02 0.2 1.72'> |
21 | <Group> |
22 | <!-- wheels axis connecting to fuselage --> |
23 |
<!-- ROUTE information for WheelTransform node:
[from WheelInterpolator.value_changed to set_rotation
]
-->
<Transform DEF='WheelTransform' scale='1.2 1.2 1.2'> |
24 | <Transform scale='0.3 0.3 0.3'> |
25 | <Transform rotation='0 1 0 1.571'> |
26 | <Shape DEF='wheel'> |
27 | <Appearance> |
28 | <Material DEF='black1' diffuseColor='0 0 0' shininess='0.125' specularColor='0.2 0.2 0.2'/> |
29 | </Appearance> |
30 | <Extrusion creaseAngle='3.14' crossSection='0.00 1.30 .494 1.196 .923 .923 1.196 .494 1.30 0.00 1.196 -.494 .923 -.923 .494 -1.196 0.00 -1.30' spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/> |
31 | </Shape> |
32 | <Shape DEF='inside_wheel'> |
33 | |
34 | <Material diffuseColor='1 1 1'/> |
35 | </Appearance> |
36 | <Extrusion crossSection='0.00 1.30 0.10 1.30 0.10 0.00 0.10 -1.30 0.00 -1.30 0.00 0.00 0.00 1.30' spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/> |
37 | </Shape> |
38 | </Transform> |
39 | <Transform rotation='0 1 0 1.571'> |
40 | <Shape> |
41 | <Appearance USE='white1'/> |
42 | <Extrusion crossSection='-0.10 1.30 0.00 1.30 0.00 0.00 0.00 -1.30 -0.10 -1.30 -0.10 0.00 -0.10 1.30' spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/> |
43 | </Shape> |
44 | </Transform> |
45 | <Transform rotation='0 1 0 1.571'> |
46 | <Shape> |
47 | <Appearance> |
48 | <Material diffuseColor='0 0.25 0.5'/> |
49 | </Appearance> |
50 | <Extrusion crossSection='-0.30 1.30 -0.10 1.30 -0.10 0.00 -0.10 -1.30 -0.30 -1.30 -0.30 0.00 -0.30 1.30' spine='0 0 1.30 0 .494 1.196 0 .923 .923 0 1.196 .494 0 1.30 0.00 0 1.196 -.494 0 .923 -.923 0 .494 -1.196 0 0.00 -1.30 0 -.494 -1.196 0 -.923 -.923 0 -1.196 -.494 0 -1.30 0 0 -1.196 .494 0 -.923 .923 0 -.494 1.196 0 0.00 1.30'/> |
51 | </Shape> |
52 | </Transform> |
53 | </Transform> |
54 | <Transform translation='0 0 0.30'> |
55 |
<!-- Inline
Hub is a DEF node that has 1 USE node: USE_1 --> <Inline DEF='Hub' url=' "Hub.x3d" "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18/Hub.x3d" "Hub.wrl" "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18/Hub.wrl" '/> |
56 | </Transform> |
57 | <Transform translation='0 0 -0.30'> |
58 | <Inline USE='Hub'/> |
59 | </Transform> |
60 |
<!-- ROUTE information for WheelTouchSensor node:
[from isOver to Clock.set_enabled
]
-->
<TouchSensor DEF='WheelTouchSensor' description='pointer spins wheel'/> |
61 |
<!-- ROUTE information for Clock node:
[from WheelTouchSensor.isOver to set_enabled
]
[from fraction_changed to WheelInterpolator.set_fraction
]
-->
<TimeSensor DEF='Clock' cycleInterval='0.5' enabled='false' loop='true'/> |
62 |
<!-- ROUTE information for WheelInterpolator node:
[from Clock.fraction_changed to set_fraction
]
[from value_changed to WheelTransform.set_rotation
]
-->
<OrientationInterpolator DEF='WheelInterpolator' key='0 0.5 1.0' keyValue='0 0 1 0.0 0 0 1 3.14 0 0 1 6.28'/> |
63 | < ROUTE fromNode='WheelTouchSensor' fromField='isOver' toNode='Clock' toField='set_enabled'/> |
64 | < ROUTE fromNode='Clock' fromField='fraction_changed' toNode='WheelInterpolator' toField='set_fraction'/> |
65 | < ROUTE fromNode='WheelInterpolator' fromField='value_changed' toNode='WheelTransform' toField='set_rotation'/> |
66 | </Transform> |
67 | </Group> |
68 | <Group> |
69 | <Transform DEF='JointsAxisAndAssistantsTest'> |
70 | <Group DEF='JointsAxisAndAssistants'> |
71 | <Transform rotation='-0.13 0.98 -0.13 1.59' scale='0.1 0.1 0.1' translation='0 0.15 1.55'> |
72 | <!-- Joint center --> |
73 | <Shape> |
74 | |
75 | <Material ambientIntensity='0.3' diffuseColor='0.3 0.3 0.3' shininess='0.20' specularColor='0.50 0.50 0.60'/> |
76 | </Appearance> |
77 |
<!-- Extrusion
joint is a DEF node that has 2 USE nodes: USE_1, USE_2 --> <Extrusion DEF='joint' creaseAngle='2.5' crossSection='0.00 1.30 .494 1.196 .923 .923 1.196 .494 1.30 0.00 1.196 -.494 .923 -.923 .494 -1.196 0.00 -1.30 -.494 -1.196 -.923 -.923 -1.196 -.494 -1.30 -0.00 -1.196 .494 -.923 .923 -.494 1.196 0.00 1.30' spine='-2.5 1.5 0 -2.5 1 0 -2 0 0 -2 0 0 -1.5 -1 0 -0.5 -1.5 0 0.5 -1.5 0 1.5 -1.5 0 2 -1.0 0'/> |
78 | </Shape> |
79 | </Transform> |
80 | <Transform rotation='-0.13 0.98 -0.13 1.59' scale='0.07 0.07 0.07' translation='0.30 0.15 1.55'> |
81 | <!-- Joint side --> |
82 | <Shape> |
83 | <Appearance USE='AxleColor'/> |
84 | <Extrusion USE='joint'/> |
85 | </Shape> |
86 | </Transform> |
87 | <Transform rotation='-0.13 0.98 -0.13 1.59' scale='0.07 0.07 0.07' translation='-0.30 0.15 1.55'> |
88 | <!-- Joint side --> |
89 | <Shape> |
90 | <Appearance USE='AxleColor'/> |
91 | <Extrusion USE='joint'/> |
92 | </Shape> |
93 | </Transform> |
94 | <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 0 0.5'> |
95 | <!-- Wheel connected axis. (black) --> |
96 | <Shape> |
97 | <Appearance USE='AxleColor'/> |
98 | <Cylinder height='1.0' radius='0.1'/> |
99 | </Shape> |
100 | </Transform> |
101 | <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 0 0.65'> |
102 | <!-- The second axis. (black) --> |
103 | <Shape> |
104 | <Appearance USE='AxleColor'/> |
105 | <Cylinder height='0.4' radius='0.25'/> |
106 | </Shape> |
107 | </Transform> |
108 | <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 0 1.1'> |
109 | <!-- assistant axle for rear wheel(white) --> |
110 | <Shape> |
111 | <Appearance> |
112 | <Material diffuseColor='1.0 1.0 1.0'/> |
113 | </Appearance> |
114 | <Cylinder height='1' radius='0.3'/> |
115 | </Shape> |
116 | </Transform> |
117 | <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0.3 0 1.1'> |
118 | <!-- assistant axle for rear wheel(white) --> |
119 | <Shape> |
120 | |
121 | <Material diffuseColor='1.0 1.0 1.0'/> |
122 | </Appearance> |
123 | <Cylinder height='1' radius='0.3'/> |
124 | </Shape> |
125 | </Transform> |
126 | <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='-0.3 0 1.1'> |
127 | <!-- assistant axle for rear wheel(white) --> |
128 | <Shape> |
129 | <Appearance USE='AssistantAxleColor'/> |
130 | <Cylinder height='1' radius='0.3'/> |
131 | </Shape> |
132 | </Transform> |
133 | </Group> |
134 | </Transform> |
135 | </Group> |
136 | </Transform> |
137 | <Transform> |
138 | <Group DEF='RearAxles'> |
139 | <Transform rotation='1 0 0 0.44' scale='0.7 0.7 0.7' translation='0 1.05 2.15'> |
140 | <!-- main axle for rear wheels (white) --> |
141 | <Shape> |
142 | <Appearance USE='AssistantAxleColor'/> |
143 | <Box size='0.5 3 0.5'/> |
144 | </Shape> |
145 | </Transform> |
146 | <Transform rotation='1 0 0 0.44' scale='0.7 0.7 0.7' translation='0.3 0.8 2'> |
147 | <!-- assistant axle for rear wheel (white) --> |
148 | <Shape> |
149 | <Appearance USE='AssistantAxleColor'/> |
150 | <Cylinder radius='0.2'/> |
151 | </Shape> |
152 | </Transform> |
153 | <Transform rotation='1 0 0 0.44' scale='0.7 0.7 0.7' translation='0.3 1.5 2.3'> |
154 | <!-- assistant axle for rear wheel (white) --> |
155 | <Shape> |
156 | <Appearance USE='AssistantAxleColor'/> |
157 | <Cylinder radius='0.3'/> |
158 | </Shape> |
159 | </Transform> |
160 | <Transform rotation='1 0 0 0.44' scale='0.7 0.7 0.7' translation='-0.3 0.8 2'> |
161 | <!-- assistant axle for rear wheel (white) --> |
162 | <Shape> |
163 | <Appearance USE='AssistantAxleColor'/> |
164 | <Cylinder radius='0.2'/> |
165 | </Shape> |
166 | </Transform> |
167 | <Transform rotation='1 0 0 0.44' scale='0.7 0.7 0.7' translation='-0.3 1.5 2.3'> |
168 | <!-- assistant axle for rear wheel (white) --> |
169 | <Shape> |
170 | <Appearance USE='AssistantAxleColor'/> |
171 | <Cylinder radius='0.3'/> |
172 | </Shape> |
173 | </Transform> |
174 | <Transform rotation='1 0 0 0.44' scale='0.5 0.5 0.5' translation='-0.3 0.2 1.72'> |
175 | <!-- assistant axis under axle (black) --> |
176 | <Shape> |
177 | <Appearance USE='AxleColor'/> |
178 | <Cylinder height='0.7' radius='0.2'/> |
179 | </Shape> |
180 | </Transform> |
181 | <Transform rotation='1 0 0 0.44' scale='0.5 0.5 0.5' translation='0 0.2 1.72'> |
182 | <!-- assistant axis under axle (black) --> |
183 | <Shape> |
184 | <Appearance USE='AxleColor'/> |
185 | <Cylinder height='0.7' radius='0.2'/> |
186 | </Shape> |
187 | </Transform> |
188 | <Transform rotation='1 0 0 0.44' scale='0.5 0.5 0.5' translation='0.3 0.2 1.72'> |
189 | <!-- assistant axis under axle (black) --> |
190 | <Shape> |
191 | <Appearance USE='AxleColor'/> |
192 | <Cylinder height='0.7' radius='0.2'/> |
193 | </Shape> |
194 | </Transform> |
195 | </Group> |
196 | </Transform> |
197 | </Transform> |
198 | </Group> |
199 | <Group DEF='Texts'> |
200 | <Transform DEF='GearUp' scale='2 2 2' translation='-4.5 1 3'> |
201 | <Shape> |
202 | <Text string='"GearUp"'> |
203 | |
204 | </Text> |
205 | </Shape> |
206 |
<!-- ROUTE information for AxleGearUpTouchSensor node:
[from touchTime to ClockAxleGearUpFirst.set_startTime
]
[from touchTime to ClockAxleGearUpSecond.set_startTime
]
-->
<TouchSensor DEF='AxleGearUpTouchSensor' description='touch for gear up'/> |
207 |
<!-- ROUTE information for ClockAxleGearUpFirst node:
[from AxleGearUpTouchSensor.touchTime to set_startTime
]
[from fraction_changed to AxleGearUpInterpolator.set_fraction
]
-->
<TimeSensor DEF='ClockAxleGearUpFirst' cycleInterval='4'/> |
208 |
<!-- ROUTE information for ClockAxleGearUpSecond node:
[from AxleGearUpTouchSensor.touchTime to set_startTime
]
[from fraction_changed to AxleGearUpInterpolator2.set_fraction
]
-->
<TimeSensor DEF='ClockAxleGearUpSecond' cycleInterval='8'/> |
209 |
<!-- ROUTE information for AxleGearUpInterpolator node:
[from ClockAxleGearUpFirst.fraction_changed to set_fraction
]
[from value_changed to WheelsRearAxleTransform.set_rotation
]
-->
<OrientationInterpolator DEF='AxleGearUpInterpolator' key='0 0.5 0.75 1.0' keyValue='0 1 0 0.0 0 1 0 0.44 0 1 0 1.22 0.21 0.95 0.21 1.62'/> |
210 | < ROUTE fromNode='AxleGearUpTouchSensor' fromField='touchTime' toNode='ClockAxleGearUpFirst' toField='set_startTime'/> |
211 | < ROUTE fromNode='ClockAxleGearUpFirst' fromField='fraction_changed' toNode='AxleGearUpInterpolator' toField='set_fraction'/> |
212 | < ROUTE fromNode='AxleGearUpInterpolator' fromField='value_changed' toNode='WheelsRearAxleTransform' toField='set_rotation'/> |
213 |
<!-- ROUTE information for AxleGearUpInterpolator2 node:
[from ClockAxleGearUpSecond.fraction_changed to set_fraction
]
[from value_changed to WheelsRearTransform.set_rotation
]
-->
<OrientationInterpolator DEF='AxleGearUpInterpolator2' key='0 0.25 0.5 1.0' keyValue='0 0 1 0.0 0 0 1 0.44 0 0 1 0.80 -0.21 -0.21 0.95 1.62'/> |
214 | < ROUTE fromNode='AxleGearUpTouchSensor' fromField='touchTime' toNode='ClockAxleGearUpSecond' toField='set_startTime'/> |
215 | < ROUTE fromNode='ClockAxleGearUpSecond' fromField='fraction_changed' toNode='AxleGearUpInterpolator2' toField='set_fraction'/> |
216 | < ROUTE fromNode='AxleGearUpInterpolator2' fromField='value_changed' toNode='WheelsRearTransform' toField='set_rotation'/> |
217 | </Transform> |
218 | <Transform DEF='GearDown' scale='2 2 2' translation='-4.5 0 3'> |
219 | <Shape> |
220 | <Text string='"GearDown"'> |
221 | <FontStyle USE='TextFont'/> |
222 | </Text> |
223 | </Shape> |
224 |
<!-- ROUTE information for AxleGearDownTouchSensor node:
[from touchTime to ClockAxleGearDownFirst.set_startTime
]
[from touchTime to ClockAxleGearDownSecond.set_startTime
]
-->
<TouchSensor DEF='AxleGearDownTouchSensor' description='touch for gear down'/> |
225 |
<!-- ROUTE information for ClockAxleGearDownFirst node:
[from AxleGearDownTouchSensor.touchTime to set_startTime
]
[from fraction_changed to AxleGearDownInterpolator.set_fraction
]
-->
<TimeSensor DEF='ClockAxleGearDownFirst' cycleInterval='4'/> |
226 |
<!-- ROUTE information for ClockAxleGearDownSecond node:
[from AxleGearDownTouchSensor.touchTime to set_startTime
]
[from fraction_changed to AxleGearDownInterpolator2.set_fraction
]
-->
<TimeSensor DEF='ClockAxleGearDownSecond' cycleInterval='8'/> |
227 |
<!-- ROUTE information for AxleGearDownInterpolator node:
[from ClockAxleGearDownFirst.fraction_changed to set_fraction
]
[from value_changed to WheelsRearAxleTransform.set_rotation
]
-->
<OrientationInterpolator DEF='AxleGearDownInterpolator' key='0 0.25 0.75 1.0' keyValue='0.21 0.95 0.21 1.62 0 1 0 1.22 0 1 0 0.44 0 1 0 0.0'/> |
228 | < ROUTE fromNode='AxleGearDownTouchSensor' fromField='touchTime' toNode='ClockAxleGearDownFirst' toField='set_startTime'/> |
229 | < ROUTE fromNode='ClockAxleGearDownFirst' fromField='fraction_changed' toNode='AxleGearDownInterpolator' toField='set_fraction'/> |
230 | < ROUTE fromNode='AxleGearDownInterpolator' fromField='value_changed' toNode='WheelsRearAxleTransform' toField='set_rotation'/> |
231 |
<!-- ROUTE information for AxleGearDownInterpolator2 node:
[from ClockAxleGearDownSecond.fraction_changed to set_fraction
]
[from value_changed to WheelsRearTransform.set_rotation
]
-->
<OrientationInterpolator DEF='AxleGearDownInterpolator2' key='0 0.25 0.5 1.0' keyValue='-0.21 -0.21 0.95 1.62 0 0 1 0.80 0 0 1 0.44 0 0 1 0.0'/> |
232 | < ROUTE fromNode='AxleGearDownTouchSensor' fromField='touchTime' toNode='ClockAxleGearDownSecond' toField='set_startTime'/> |
233 | < ROUTE fromNode='ClockAxleGearDownSecond' fromField='fraction_changed' toNode='AxleGearDownInterpolator2' toField='set_fraction'/> |
234 | < ROUTE fromNode='AxleGearDownInterpolator2' fromField='value_changed' toNode='WheelsRearTransform' toField='set_rotation'/> |
235 | </Transform> |
236 | </Group> |
237 | </Scene> |
238 | </X3D> |
Event Graph ROUTE Table entries with 15 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
AxleGearDownTouchSensor
TouchSensor touchTime SFTime |
ClockAxleGearDownFirst
TimeSensor set_startTime SFTime |
then
|
ClockAxleGearDownFirst
TimeSensor fraction_changed SFFloat |
AxleGearDownInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
AxleGearDownInterpolator
OrientationInterpolator value_changed SFRotation |
WheelsRearAxleTransform
Transform set_rotation SFRotation |
|||
AxleGearDownTouchSensor
TouchSensor touchTime SFTime |
ClockAxleGearDownSecond
TimeSensor set_startTime SFTime |
then
|
ClockAxleGearDownSecond
TimeSensor fraction_changed SFFloat |
AxleGearDownInterpolator2
OrientationInterpolator set_fraction SFFloat |
then
|
AxleGearDownInterpolator2
OrientationInterpolator value_changed SFRotation |
WheelsRearTransform
Transform set_rotation SFRotation |
AxleGearUpTouchSensor
TouchSensor touchTime SFTime |
ClockAxleGearUpFirst
TimeSensor set_startTime SFTime |
then
|
ClockAxleGearUpFirst
TimeSensor fraction_changed SFFloat |
AxleGearUpInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
AxleGearUpInterpolator
OrientationInterpolator value_changed SFRotation |
WheelsRearAxleTransform
Transform set_rotation SFRotation |
|||
AxleGearUpTouchSensor
TouchSensor touchTime SFTime |
ClockAxleGearUpSecond
TimeSensor set_startTime SFTime |
then
|
ClockAxleGearUpSecond
TimeSensor fraction_changed SFFloat |
AxleGearUpInterpolator2
OrientationInterpolator set_fraction SFFloat |
then
|
AxleGearUpInterpolator2
OrientationInterpolator value_changed SFRotation |
WheelsRearTransform
Transform set_rotation SFRotation |
WheelTouchSensor
TouchSensor isOver SFBool |
Clock
TimeSensor set_enabled SFBool |
then
|
Clock
TimeSensor fraction_changed SFFloat |
WheelInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
WheelInterpolator
OrientationInterpolator value_changed SFRotation |
WheelTransform
Transform set_rotation SFRotation |
<!--
Color-coding legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->