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=' FrontWheel.x3d '/> |
6 | <meta name='description' content='F16 front wheel'/> |
7 | <meta name='creator' content='Etsuko Lippi'/> |
8 | <meta name='translator' content='Murat ONDER, LTJG, Turkish Navy'/> |
9 | <meta name='created' content='19 July 2001'/> |
10 | <meta name='modified' content='28 November 2019'/> |
11 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F16FightingFalconTurkey/FrontWheel.x3d '/> |
12 | <meta name='license' content='../../license.html'/> |
13 | </head> |
14 | <Scene> |
15 | <!-- Example scene to illustrate X3D tags and attributes. --> |
16 | <WorldInfo title='FrontWheel.x3d'/> |
17 | <Transform DEF='WheelsFrontAxleTransform' rotation='0 1 0 -1.57'> |
18 | <Group> |
19 | <!-- Upper white axles --> |
20 | <Transform translation='0 -0.25 0'> |
21 | <Transform scale='0.7 0.7 0.7' translation='0 2.0 0.75'> |
22 | <!-- main axle for front wheels --> |
23 | <Shape> |
24 | |
25 | <Material diffuseColor='1.0 1.0 1.0'/> |
26 | </Appearance> |
27 | <Cylinder height='2.5' radius='0.25'/> |
28 | </Shape> |
29 | </Transform> |
30 | <Transform rotation='0 0 -1 1.05' scale='0.7 0.7 0.7' translation='0.68 1.8 0.75'> |
31 | <!-- assistant axle for front wheels --> |
32 | <Shape> |
33 | <Appearance USE='mainAxle'/> |
34 | <Cylinder height='2.1' radius='0.2'/> |
35 | </Shape> |
36 | </Transform> |
37 | <Transform rotation='0 0 -1 1.05' scale='0.7 0.7 0.7' translation='1.8 2.42 0.75'> |
38 | <!-- assistant axle for front wheels --> |
39 | <Shape> |
40 | <Appearance USE='mainAxle'/> |
41 | <Cylinder height='1.6' radius='0.3'/> |
42 | </Shape> |
43 | </Transform> |
44 | </Transform> |
45 | </Group> |
46 | <Group> |
47 | <!-- Gray joints and wheel group --> |
48 | <Transform translation='0 0 -0.73'> |
49 | <Transform translation='0 0.55 0.95'> |
50 | <!-- vertical axle --> |
51 | <Shape> |
52 | |
53 | <Material ambientIntensity='0.3' diffuseColor='0.3 0.3 0.3' shininess='0.20' specularColor='0.50 0.50 0.60'/> |
54 | </Appearance> |
55 | <Cylinder height='1' radius='0.08'/> |
56 | </Shape> |
57 | </Transform> |
58 | <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 0 1'> |
59 | <!-- lower horizontal axle --> |
60 | <Shape> |
61 | <Appearance USE='axis'/> |
62 | <Cylinder height='0.5' radius='0.1'/> |
63 | </Shape> |
64 | </Transform> |
65 | <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 0 0.95'> |
66 | <!-- lower Joint --> |
67 | <Shape> |
68 | <Appearance USE='axis'/> |
69 | <Cylinder height='0.4' radius='0.15'/> |
70 | </Shape> |
71 | </Transform> |
72 | <Group> |
73 | <!-- wheel --> |
74 |
<!-- ROUTE information for WheelTransform node:
[from WheelInterpolator.value_changed to set_rotation
]
-->
<Transform DEF='WheelTransform'> |
75 |
<!-- ROUTE information for WheelTouchSensor node:
[from isOver to Clock.set_enabled
]
-->
<TouchSensor DEF='WheelTouchSensor' description='When the mouse comes over the wheel the wheel starts to turn.'/> |
76 |
<!-- 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'/> |
77 |
<!-- 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'/> |
78 | < ROUTE fromNode='WheelTouchSensor' fromField='isOver' toNode='Clock' toField='set_enabled'/> |
79 | < ROUTE fromNode='Clock' fromField='fraction_changed' toNode='WheelInterpolator' toField='set_fraction'/> |
80 | < ROUTE fromNode='WheelInterpolator' fromField='value_changed' toNode='WheelTransform' toField='set_rotation'/> |
81 | <Transform scale='0.3 0.3 0.3' translation='0 0 1.5'> |
82 | <Transform rotation='0 1 0 1.571'> |
83 | <Shape DEF='front_wheel'> |
84 | <Appearance> |
85 | <Material DEF='black' diffuseColor='0 0 0' shininess='0.125' specularColor='0.2 0.2 0.2'/> |
86 | </Appearance> |
87 | <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'/> |
88 | </Shape> |
89 | <Shape DEF='inside_wheel'> |
90 | |
91 | <Material diffuseColor='1 1 1'/> |
92 | </Appearance> |
93 | <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'/> |
94 | </Shape> |
95 | </Transform> |
96 | <Transform rotation='0 1 0 1.571'> |
97 | <Shape> |
98 | <Appearance USE='white'/> |
99 | <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'/> |
100 | </Shape> |
101 | </Transform> |
102 | <Transform rotation='0 1 0 1.571'> |
103 | <Shape> |
104 | <Appearance> |
105 | <Material diffuseColor='0 0.25 0.5'/> |
106 | </Appearance> |
107 | <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'/> |
108 | </Shape> |
109 | </Transform> |
110 | </Transform> |
111 | <Transform translation='0 0 1.80'> |
112 |
<!-- 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/F16FightingFalconTurkey/Hub.x3d" "Hub.wrl" "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F16FightingFalconTurkey/Hub.wrl" '/> |
113 | </Transform> |
114 | <Transform translation='0 0 1.20'> |
115 | <Inline USE='Hub'/> |
116 | </Transform> |
117 | </Transform> |
118 | </Group> |
119 | <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 1 0.95'> |
120 | <!-- Upper Joint --> |
121 | <Shape> |
122 | <Appearance USE='axis'/> |
123 | <Cylinder height='0.4' radius='0.15'/> |
124 | </Shape> |
125 | </Transform> |
126 | <Transform rotation='1 0 0 1.57' scale='0.7 0.7 0.7' translation='0 1 1.2'> |
127 | <!-- upper horizontal axle --> |
128 | <Shape> |
129 | <Appearance USE='axis'/> |
130 | <Cylinder height='0.9' radius='0.1'/> |
131 | </Shape> |
132 | </Transform> |
133 | </Transform> |
134 | </Group> |
135 | </Transform> |
136 | </Scene> |
137 | </X3D> |
Event Graph ROUTE Table entries with 3 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.
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.
-->