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='Bushmaster.x3d'/> |
6 | <meta name='description' content='Boeing Bushmaster II 30mm AAAV gun'/> |
7 | <meta name='creator' content='William Geissler'/> |
8 | <meta name='created' content='21 January 2001'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='identifier' content='https://savage.nps.edu/Savage/GroundVehicles/MEFFV/Bushmaster.x3d'/> |
11 | <meta name='generator' content='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/> |
12 | <meta name='license' content='../../license.html'/> |
13 | </head> |
14 | <Scene> |
15 | <WorldInfo info='"AAAV 30mm cannon"' title='Bushmaster II'/> |
16 | <Transform DEF='Bushmaster' rotation='1 0 0 1.57'> |
17 | <Transform DEF='Coaxial-Gun' translation='0.5 0.5 0.5'> |
18 | <Transform translation='0.25 2 -1'> |
19 | <Shape DEF='Coax-Barrel'> |
20 | <Cylinder radius='0.1'/> |
21 | <Appearance> |
22 | <Material diffuseColor='0.15 0.25 0.05'/> |
23 | </Appearance> |
24 | </Shape> |
25 | </Transform> |
26 | <Transform scale='0.9 0.9 0.9' translation='0.25 3.18 -1'> |
27 | <Group DEF='Coax-Flash-Suppressor'> |
28 | <Shape> |
29 | <Appearance> |
30 | <Material diffuseColor='0.2 0.2 0.2'/> |
31 | </Appearance> |
32 | <Extrusion ccw='false' creaseAngle='0.785' crossSection='1.00 0.00 0.92 0.38 0.71 0.71 0.38 0.92 0.00 1.00 -0.38 0.92 -0.71 0.71 -0.92 0.38 -1.00 0.00 -0.92 -0.38 -0.71 -0.71 -0.38 -0.92 0.00 -1.00 0.38 -0.92 0.71 -0.71 0.92 -0.38 1.00 0.00 0.80 0.00 0.74 -0.31 0.57 -0.57 0.31 -0.74 0.00 -0.80 -0.31 -0.74 -0.57 -0.57 -0.74 -0.31 -0.80 0.00 -0.74 0.31 -0.57 0.57 -0.31 0.74 0.00 0.80 0.31 0.74 0.57 0.57 0.74 0.31 0.80 0.00' scale='.125 .125 .125 .125' spine='0.0 -0.2 0.0 0.0 0.2 0.0'/> |
33 | </Shape> |
34 | <Transform translation='0 -0.24 0'> |
35 | <Shape> |
36 | <Cylinder bottom='false' height='0.1' radius='0.07' side='false'/> |
37 | <Appearance> |
38 | <Material diffuseColor='0 0 0'/> |
39 | </Appearance> |
40 | </Shape> |
41 | </Transform> |
42 | </Group> |
43 | </Transform> |
44 | </Transform> |
45 | <Group DEF='Gun-System'> |
46 | <Shape> |
47 | <Box/> |
48 | <Appearance> |
49 | <ImageTexture url=' "green1.jpg " "https://savage.nps.edu/Savage/GroundVehicles/MEFFV/green1.jpg " '/> |
50 | </Appearance> |
51 | </Shape> |
52 | <Transform translation='0 2 0'> |
53 | <Shape DEF='Mount'> |
54 | <Cone bottom='false' bottomRadius='0.5' height='4'/> |
55 | <Appearance> |
56 | <Material diffuseColor='0.15 0.25 0.05'/> |
57 | </Appearance> |
58 | </Shape> |
59 | </Transform> |
60 | <Transform scale='1 6 1' translation='0 5.3 0'> |
61 | <Shape DEF='GunBarrel'> |
62 | <Cylinder bottom='false' height='1' radius='.1'/> |
63 | <Appearance> |
64 | <Material diffuseColor='0.15 0.25 0.05'/> |
65 | </Appearance> |
66 | </Shape> |
67 | </Transform> |
68 | <Transform translation='0 8.5 0'> |
69 | <Group DEF='FlashSuppressor'> |
70 | <Shape> |
71 | <Appearance> |
72 | <Material diffuseColor='0.2 0.2 0.2'/> |
73 | </Appearance> |
74 | <Extrusion ccw='false' creaseAngle='0.785' crossSection='1.00 0.00 0.92 0.38 0.71 0.71 0.38 0.92 0.00 1.00 -0.38 0.92 -0.71 0.71 -0.92 0.38 -1.00 0.00 -0.92 -0.38 -0.71 -0.71 -0.38 -0.92 0.00 -1.00 0.38 -0.92 0.71 -0.71 0.92 -0.38 1.00 0.00 0.80 0.00 0.74 -0.31 0.57 -0.57 0.31 -0.74 0.00 -0.80 -0.31 -0.74 -0.57 -0.57 -0.74 -0.31 -0.80 0.00 -0.74 0.31 -0.57 0.57 -0.31 0.74 0.00 0.80 0.31 0.74 0.57 0.57 0.74 0.31 0.80 0.00' scale='.125 .125 .125 .125' spine='0.0 -0.2 0.0 0.0 0.2 0.0'/> |
75 | </Shape> |
76 | <Transform translation='0 -0.24 0'> |
77 | <Shape> |
78 | <Cylinder bottom='false' height='0.1' radius='0.07' side='false'/> |
79 | <Appearance> |
80 | <Material diffuseColor='0 0 0'/> |
81 | </Appearance> |
82 | </Shape> |
83 | </Transform> |
84 | </Group> |
85 | </Transform> |
86 | </Group> |
87 | <Sound location='0 0 8.5' maxBack='100' maxFront='100' minBack='0' minFront='0'> |
88 |
<!-- ROUTE information for Source node:
[from FireSensor.touchTime to set_startTime
]
-->
<AudioClip DEF='Source' url=' "tone1.wav" "https://savage.nps.edu/Savage/AmphibiousVehicles/AAAV/tone1.wav" '/> |
89 | </Sound> |
90 |
<!-- ROUTE information for FireSensor node:
[from touchTime to CLOCK.set_startTime
]
[from touchTime to Source.set_startTime
]
-->
<TouchSensor DEF='FireSensor' description='click to fire'/> |
91 |
<!-- ROUTE information for CLOCK node:
[from FireSensor.touchTime to set_startTime
]
[from fraction_changed to PROJECTILEPATH.set_fraction
]
-->
<TimeSensor DEF='CLOCK'/> |
92 | </Transform> |
93 |
<!-- ROUTE information for PROJECTILE node:
[from PROJECTILEPATH.value_changed to set_translation
]
-->
<Transform DEF='PROJECTILE' rotation='1 0 0 1.57' scale='.1 .1 .1'> |
94 | <Inline url=' "HotLead.x3d" "https://savage.nps.edu/Savage/AmphibiousVehicles/AAAV/HotLead.x3d" "HotLead.wrl" "https://savage.nps.edu/Savage/AmphibiousVehicles/AAAV/HotLead.wrl" '/> |
95 |
<!-- ROUTE information for PROJECTILEPATH node:
[from CLOCK.fraction_changed to set_fraction
]
[from value_changed to PROJECTILE.set_translation
]
-->
<PositionInterpolator DEF='PROJECTILEPATH' key='0.00 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18 0.18 0.20 0.20 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38 0.38 0.40 0.40 0.42 0.44 0.46 0.48 0.50 0.52 0.54 0.56 0.58 0.58 0.60 0.60 0.62 0.64 0.66 0.68 0.70 0.72 0.74 0.76 0.78 0.78 0.80 0.80 0.82 0.84 0.86 0.88 0.90 0.92 0.94 0.96 0.98 0.98' keyValue='0.0 0.0 0.0 0.0 0.0 9.0 0.0 0.0 24.0 0.0 0.0 36.0 0.0 0.0 48.0 0.0 0.0 60.0 0.0 0.0 72.0 0.0 0.0 84.0 0.0 0.0 96.0 0.0 0.0 108.0 0.0 0.0 120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.0 0.0 0.0 24.0 0.0 0.0 36.0 0.0 0.0 48.0 0.0 0.0 60.0 0.0 0.0 72.0 0.0 0.0 84.0 0.0 0.0 96.0 0.0 0.0 108.0 0.0 0.0 120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.0 0.0 0.0 24.0 0.0 0.0 36.0 0.0 0.0 48.0 0.0 0.0 60.0 0.0 0.0 72.0 0.0 0.0 84.0 0.0 0.0 96.0 0.0 0.0 108.0 0.0 0.0 120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.0 0.0 0.0 24.0 0.0 0.0 36.0 0.0 0.0 48.0 0.0 0.0 60.0 0.0 0.0 72.0 0.0 0.0 84.0 0.0 0.0 96.0 0.0 0.0 108.0 0.0 0.0 120.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.0 0.0 0.0 24.0 0.0 0.0 36.0 0.0 0.0 48.0 0.0 0.0 60.0 0.0 0.0 72.0 0.0 0.0 84.0 0.0 0.0 96.0 0.0 0.0 108.0 0.0 0.0 120.0 0.0 0.0 0.0'/> |
96 | </Transform> |
97 | < ROUTE fromNode='FireSensor' fromField='touchTime' toNode='CLOCK' toField='set_startTime'/> |
98 | < ROUTE fromNode='CLOCK' fromField='fraction_changed' toNode='PROJECTILEPATH' toField='set_fraction'/> |
99 | < ROUTE fromNode='PROJECTILEPATH' fromField='value_changed' toNode='PROJECTILE' toField='set_translation'/> |
100 | < ROUTE fromNode='FireSensor' fromField='touchTime' toNode='Source' toField='set_startTime'/> |
101 | </Scene> |
102 | </X3D> |
Event Graph ROUTE Table entries with 4 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.
FireSensor
TouchSensor touchTime SFTime |
CLOCK
TimeSensor set_startTime SFTime |
then
|
CLOCK
TimeSensor fraction_changed SFFloat |
PROJECTILEPATH
PositionInterpolator set_fraction SFFloat |
then
|
PROJECTILEPATH
PositionInterpolator value_changed SFVec3f |
PROJECTILE
Transform set_translation SFVec3f |
|||
FireSensor
TouchSensor touchTime SFTime |
Source
AudioClip set_startTime SFTime |
<!--
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. -->