X3D Model Documentation: RifleM24Prototype.x3d

  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='titlecontent=' RifleM24Prototype.x3d '/>
  6            <meta name='descriptioncontent='Prototype of M24 bolt-action sniper rifle used by the US Army.'/>
  7            <meta name='creatorcontent='Etsuko Lippi'/>
  8            <meta name='createdcontent='21 December 2001'/>
  9            <meta name='modifiedcontent='28 November 2019'/>
 10            <meta name='referencecontent=' https://www.fas.org/man/dod-101/sys/land/m14.htm '/>
 11            <meta name='referencecontent=' http://www.dentrinity.com/Topics/m24perfect.htm '/>
 12            <meta name='referencecontent=' http://www.empnet.com/imageworks/raj2.htm '/>
 13            <meta name='referencecontent=' http://www.thepocket.com/waveffects.htm '/>
 14            <meta name='subjectcontent='M24 Rifle'/>
 15            <meta name='Soundcontent='RifleFire.wav from The Hollywood Edge, Military and Aircraft Collection PE-23, Track 28'/>
 16            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleM24Prototype.x3d '/>
 17            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 18            <meta name='licensecontent='../../license.html'/>
 19       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Adjustment, AdjustmentLeft, AdjustmentRight, AdjustmentTele, AdjustmentTop, Barrel, BarrelBack, BarrelBulletLoad, BarrelBulletLoadEnd, BarrelCenter, BarrelColor, BarrelEnd, BarrelEndColor, BarrelFront, BarrelPoint, BulletColor, BulletGuide, BulletTransform, CircleLine, Clock, Flame1, Flame2, Flame3, FlashInterpolator, FlashTransform, Handle, HandleBody, HandleEnd, HandRest, HandrestColor, High, RifleFireSound, RifleFireSoundAudio, Safety, SafetyPin, ShootShockInterpolator, ShootShockTransform, Stack, StackBody, StackColor, StackEnd, Telescope, TelescopeAdjustmentColor, TelescopeBeltBack, TelescopeBeltFront, TelescopeBoltBack, TelescopeBoltFront, TelescopeColor, TelescopeLensForEye, TelescopeLensFront, TelescopeMain, Trigger, TriggerGuard, TriggerInterpolator, TriggerPin, TriggerScript, Viewpoints

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5

Index for ProtoDeclare definition: RifleM24
-->
 20       <Scene>
 21            <WorldInfo title='RifleM24Prototype.x3d'/>
 22            <ProtoDeclare name='RifleM24appinfo='Rifle M24'>
 23                 <ProtoInterface>
 24                      <field name='triggertype='SFBoolaccessType='inputOnly'
                     appinfo='input true to fire'/>
 25                      <field name='firetype='SFBoolaccessType='outputOnly'
                     appinfo='output true when fired'/>
 26                      <field name='animationStartTimetype='SFTimeaccessType='inputOnly'
                     appinfo='trigger animation'/>
 27                 </ProtoInterface>
 28                 <ProtoBody>
 29                      <Group>
 30                           <Viewpoint description='M24 sniper rifleposition='-4 -.1 10'/>
 31                           <LOD range='100'>
 32                                <Group>
 33                                     <Group DEF='Viewpoints'>
 34                                          <!-- High Resolution -->
 35                                          <Viewpoint description='M24 from aheadorientation='0.009 .999 0.036 1.5266position='4.1 0 .4'/>
 36                                          <Viewpoint description='M24 left-over-the-shoulder vieworientation='-0.008 1 -0.015 4.6497position='-12.2 -.8 -3'/>
 37                                          <Viewpoint description='M24 right-over-the-shoulder vieworientation='-0.008 1 -0.015 4.6497position='-13.2 -.7 1.8'/>
 38                                          <Viewpoint description='M24 scope viewfieldOfView='0.099orientation='0.003 -1 -0.015 1.5497position='-7 .4 0'/>
 39                                     </Group>
 40                                     <Group DEF='High'>
 41 
                                        <!-- ROUTE information for ShootShockTransform node:  [from ShootShockInterpolator.value_changed to set_translation ] -->
                                        <Transform DEF='ShootShockTransformscale='10 10 10'>
 42 
                                             <!-- ROUTE information for BulletTransform node:  [from TriggerInterpolator.value_changed to set_translation ] -->
                                             <Transform DEF='BulletTransformrotation='0 0 1 -1.57scale='0.8 1 0.8translation='-0.64 0.0 0'>
 43                                                    <Shape>
 44                                                         <Appearance DEF='BulletColor'>
 45                                                              <Material ambientIntensity='0.1diffuseColor='0.804 0.678 0shininess='0.1specularColor='0.85 0.85 0.85'/>
 46                                                         </Appearance>
 47                                                         <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013scale='0.75 0.75 0.75 0.75 0.7 0.7 0.65 0.65 0.55 0.55 0.4 0.4 0.25 0.25 0.1 0.1spine='0 0.125 0 0 0.13 0 0 0.135 0 0 0.165 0 0 0.17 0 0 0.175 0 0 0.18 0 0 0.185 0'/>
 48                                                    </Shape>
 49                                               </Transform>
 50                                               <Transform DEF='Barrelrotation='0.58 -0.58 0.58 2.09'>
 51                                                    <Transform DEF='BarrelPointtranslation='0 -0.1 0'>
 52                                                         <Shape>
 53 
                                                            <!-- Appearance BarrelColor is a DEF node that has 10 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5, USE_6, USE_7, USE_8, USE_9, USE_10 -->
                                                            <Appearance DEF='BarrelColor'>
 54                                                                   <Material ambientIntensity='0.1diffuseColor='0.5 0.5 0.5shininess='0.8specularColor='0.85 0.85 0.85'/>
 55                                                              </Appearance>
 56                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013 0.0 0.012 -0.00425 0.0109 -0.0085 0.0085 -0.0109 0.00425 -0.012 -0.0 -0.0109 -0.00425 -0.0085 -0.0085 -0.00425 -0.0109 0.0 -0.012 0.00425 -0.0109 .0085 -0.0085 0.0109 -0.00425 0.012 0.0 0.0109 0.00425 0.0085 0.0085 0.00425 0.0109 0.0 0.012scale='0.9 0.9 0.55 0.55spine='0 0 0 0 -0.005 0'/>
 57                                                         </Shape>
 58                                                    </Transform>
 59 
                                                  <!-- ROUTE information for FlashTransform node:  [from FlashInterpolator.value_changed to set_translation ] -->
                                                  <Transform DEF='FlashTransformtranslation='0 0.15 0'>
 60                                                         <Transform DEF='Flame1rotation='0 0 1 3.14scale='0.02 0.12 0.02'>
 61                                                              <Shape>
 62                                                                   <IndexedFaceSet coordIndex='0 1 2 -1 3 4 5 -1 6 7 8 -1'>
 63                                                                        <Coordinate point='0.25 0.0 0.00 0.15 1.0 0.10 0.05 0.0 0.15 0.18 0.0 0.05 0.00 1.2 0.05 -0.10 0.0 0.05 -0.00 0.0 0.15 -0.13 0.8 0.10 -0.25 0.0 0.00'/>
 64                                                                        <Color color='0.9 0.5 0.0 0.9 0.5 0 0.8 0.3 0.0 0.9 0.3 0 1.0 1.0 0.0 0.9 0.3 0 0.7 0.1 0.2 0.9 0.8 0 1.0 0.0 0.0'/>
 65                                                                   </IndexedFaceSet>
 66                                                              </Shape>
 67                                                         </Transform>
 68                                                         <Transform DEF='Flame2rotation='0.71 0 0.71 3.14scale='0.02 0.1 0.02'>
 69                                                              <Shape>
 70                                                                   <IndexedFaceSet coordIndex='0 1 2 -1 3 4 5 -1 6 7 8 -1'>
 71                                                                        <Coordinate point='0.25 0.0 0.00 0.15 1.0 0.10 0.05 0.0 0.15 0.18 0.0 0.05 0.00 1.2 0.05 -0.10 0.0 0.05 -0.00 0.0 0.15 -0.13 0.8 0.10 -0.25 0.0 0.00'/>
 72                                                                        <Color color='1.0 1.0 1.0 0.9 0.9 0.9 0.804 0.788 0.788 0.8 0.8 0.8 1.0 1.0 1.0 1.0 1.0 0.0 0.7 0.7 0.7 0.9 0.8 0.9 1.0 0.498 0'/>
 73                                                                   </IndexedFaceSet>
 74                                                              </Shape>
 75                                                         </Transform>
 76                                                         <Transform DEF='Flame3rotation='0.79 0 0.61 3.14scale='0.02 0.1 0.02'>
 77                                                              <Shape>
 78                                                                   <IndexedFaceSet coordIndex='0 1 2 -1 3 4 5 -1 6 7 8 -1'>
 79                                                                        <Coordinate point='0.25 0.0 0.00 0.15 1.0 0.10 0.05 0.0 0.15 0.18 0.0 0.05 0.00 1.2 0.05 -0.10 0.0 0.05 -0.00 0.0 0.15 -0.13 0.8 0.10 -0.25 0.0 0.00'/>
 80                                                                        <Color color='1.0 1.0 1.0 0.9 0.9 0.9 0.804 0.788 0.788 0.8 0.8 0.8 1.0 1.0 1.0 1.0 1.0 0.0 0.7 0.7 0.7 0.9 0.8 0.9 1.0 0.498 0'/>
 81                                                                   </IndexedFaceSet>
 82                                                              </Shape>
 83                                                         </Transform>
 84                                                    </Transform>
 85                                                    <Transform DEF='BarrelFronttranslation='0 -0.1 0'>
 86                                                         <Shape>
 87                                                              <Appearance USE='BarrelColor'/>
 88                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013 0.0 0.012 -0.00425 0.0109 -0.0085 0.0085 -0.0109 0.00425 -0.012 -0.0 -0.0109 -0.00425 -0.0085 -0.0085 -0.00425 -0.0109 0.0 -0.012 0.00425 -0.0109 .0085 -0.0085 0.0109 -0.00425 0.012 0.0 0.0109 0.00425 0.0085 0.0085 0.00425 0.0109 0.0 0.012spine='0 0 0 0 0.05 0'/>
 89                                                         </Shape>
 90                                                    </Transform>
 91                                                    <Transform DEF='BarrelCenter'>
 92                                                         <Shape>
 93                                                              <Appearance USE='BarrelColor'/>
 94                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.008 0.008 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.008 -0.008 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.008 -0.008 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.008 0.008 -0.00494 0.01196 0.00 0.013 0.0 0.012 -0.00425 0.0109 -0.0085 0.0085 -0.0109 0.00425 -0.012 -0.0 -0.0109 -0.00425 -0.0085 -0.0085 -0.00425 -0.0109 0.0 -0.012 0.00425 -0.0109 .0085 -0.0085 0.0109 -0.00425 0.012 0.0 0.0109 0.00425 0.0085 0.0085 0.00425 0.0109 0.0 0.012spine='0.0 -0.1 0.0 0.0 0.35 0.0'/>
 95                                                         </Shape>
 96                                                    </Transform>
 97                                                    <Transform DEF='BarrelBacktranslation='0 0.42 0'>
 98                                                         <Shape>
 99                                                              <Appearance USE='BarrelColor'/>
100                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013 0.0 0.012 -0.00425 0.0109 -0.0085 0.0085 -0.0109 0.00425 -0.012 -0.0 -0.0109 -0.00425 -0.0085 -0.0085 -0.00425 -0.0109 0.0 -0.012 0.00425 -0.0109 .0085 -0.0085 0.0109 -0.00425 0.012 0.0 0.0109 0.00425 0.0085 0.0085 0.00425 0.0109 0.0 0.012spine='0 -0.07 0 0 0.05 0'/>
101                                                         </Shape>
102                                                    </Transform>
103                                                    <Transform DEF='BarrelBulletLoadrotation='0 1 0 1.3translation='0 0.42 0'>
104                                                         <Shape>
105                                                              <Appearance USE='BarrelColor'/>
106                                                              <Extrusion creaseAngle='1.57crossSection='0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013 0.0 0.012 -0.00425 0.0109 -0.0085 0.0085 -0.0109 0.00425 -0.012 -0.0 -0.0109 -0.00425 -0.0085 -0.0085 -0.00425 -0.0109 0.0 -0.012 0.00425 -0.0109 .0085 -0.0085 0.0109 -0.00425 0.012 0.0spine='0 0.05 0 0 0.10 0'/>
107                                                         </Shape>
108                                                    </Transform>
109                                                    <Transform DEF='BarrelBulletLoadEndtranslation='0 0.42 0'>
110                                                         <Shape>
111                                                              <Appearance USE='BarrelColor'/>
112                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013 0.0 0.012 -0.00425 0.0109 -0.0085 0.0085 -0.0109 0.00425 -0.012 -0.0 -0.0109 -0.00425 -0.0085 -0.0085 -0.00425 -0.0109 0.0 -0.012 0.00425 -0.0109 .0085 -0.0085 0.0109 -0.00425 0.012 0.0 0.0109 0.00425 0.0085 0.0085 0.00425 0.0109 0.0 0.012spine='0 0.10 0 0 0.123 0'/>
113                                                         </Shape>
114                                                    </Transform>
115                                                    <Transform DEF='BarrelEndscale='0.9 1.1 0.9translation='0 0.405 0'>
116                                                         <Shape>
117 
                                                            <!-- Appearance BarrelEndColor is a DEF node that has 1 USE node: USE_1 -->
                                                            <Appearance DEF='BarrelEndColor'>
118                                                                   <Material ambientIntensity='0.1diffuseColor='0.85 0.85 0.85shininess='0.8specularColor='0.85 0.85 0.85'/>
119                                                              </Appearance>
120                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013scale='1.0 1.0 1.0 1.0 0.8 0.8 0.8 0.8 0.6 0.6spine='0 0.125 0 0 0.13 0 0 0.135 0 0 0.14 0 0 0.15 0'/>
121                                                         </Shape>
122                                                    </Transform>
123                                               </Transform>
124                                               <Transform DEF='BulletGuiderotation='0 1 0 1.57translation='0.08 0.02 0.011'>
125                                                    <Shape>
126                                                         <Appearance>
127                                                              <Material diffuseColor='0.3 0.3 0.3'/>
128                                                         </Appearance>
129                                                         <Extrusion creaseAngle='1.57crossSection='0.0 0.006 0.001 0.0057 0.001 -0.0057 0.0 -0.006 -0.001 -0.0057 -0.001 0.0057 0.0 0.006scale='0.8 0.8 1.5 1.0spine='0.01 0.0 0.0 0.01 -0.01 0.0'/>
130                                                    </Shape>
131                                               </Transform>
132                                               <Transform DEF='Telescoperotation='0.58 -0.58 0.58 2.09translation='0 -0.01 0'>
133                                                    <Transform DEF='TelescopeLensFronttranslation='0 0.36 -0.05'>
134                                                         <Shape>
135                                                              <Appearance>
136                                                                   <Material diffuseColor='0.0941 0.455 0.804emissiveColor='0.0941 0.455 0.804shininess='0.8transparency='0.55'/>
137                                                              </Appearance>
138                                                              <Cylinder height='0.005radius='0.02'/>
139                                                         </Shape>
140                                                    </Transform>
141                                                    <Transform DEF='CircleLinerotation='1 0 0 1.57scale='0.0215 0.0215 0.015translation='0 0.35 -0.05'>
142                                                         <Shape>
143                                                              <Appearance>
144                                                                   <Material diffuseColor='0.957 0.643 0.376emissiveColor='0.957 0.643 0.376'/>
145                                                              </Appearance>
146                                                              <IndexedLineSet coordIndex='0 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 -1 60 61 -1 62 63 -1'>
147                                                                   <Coordinate point='0.0 1.0 0.0 0.105 0.995 0.0 0.208 0.978 0.0 0.309 0.951 0.0 0.407 0.914 0.0 0.500 0.866 0.0 0.588 0.809 0.0 0.669 0.743 0.0 0.743 0.669 0.0 0.809 0.588 0.0 0.866 0.500 0.0 0.914 0.407 0.0 0.951 0.309 0.0 0.978 0.208 0.0 0.995 0.105 0.0 1.0 0.0 0.0 0.995 -0.105 0.0 0.978 -0.208 0.0 0.951 -0.309 0.0 0.914 -0.407 0.0 0.866 -0.500 0.0 0.809 -0.588 0.0 0.743 -0.669 0.0 0.669 -0.743 0.0 0.588 -0.809 0.0 0.500 -0.866 0.0 0.407 -0.914 0.0 0.309 -0.951 0.0 0.208 -0.978 0.0 0.105 -0.995 0.0 0.0 -1.0 0.0 -0.105 -0.995 0.0 -0.208 -0.978 0.0 -0.309 -0.951 0.0 -0.407 -0.914 0.0 -0.500 -0.866 0.0 -0.588 -0.809 0.0 -0.669 -0.743 0.0 -0.743 -0.669 0.0 -0.809 -0.588 0.0 -0.866 -0.500 0.0 -0.914 -0.407 0.0 -0.951 -0.309 0.0 -0.978 -0.208 0.0 -0.995 -0.105 0.0 -1.0 -0.0 0.0 -0.995 0.105 0.0 -0.978 0.208 0.0 -0.951 0.309 0.0 -0.914 0.407 0.0 -0.866 0.500 0.0 -0.809 0.588 0.0 -0.743 0.669 0.0 -0.669 0.743 0.0 -0.588 0.809 0.0 -0.500 0.866 0.0 -0.407 0.914 0.0 -0.309 0.951 0.0 -0.208 0.978 0.0 -0.105 0.995 0.0 0 1 0 0 -1 0 1 0 0 -1 0 0'/>
148                                                              </IndexedLineSet>
149                                                         </Shape>
150                                                    </Transform>
151                                                    <Transform DEF='TelescopeLensForEyetranslation='0 0.58 -0.05'>
152                                                         <Shape>
153                                                              <Appearance>
154                                                                   <Material diffuseColor='0.0941 0.455 0.804transparency='0.5'/>
155                                                              </Appearance>
156                                                              <Cylinder height='0.005radius='0.016'/>
157                                                         </Shape>
158                                                    </Transform>
159                                                    <Transform DEF='TelescopeMaintranslation='0 0.35 -0.05'>
160                                                         <Shape>
161 
                                                            <!-- Appearance TelescopeColor is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                                                            <Appearance DEF='TelescopeColor'>
162                                                                   <Material diffuseColor='0.2 0.2 0.2'/>
163                                                              </Appearance>
164                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013 0.0 0.012 -0.00425 0.0109 -0.0085 0.0085 -0.0109 0.00425 -0.012 -0.0 -0.0109 -0.00425 -0.0085 -0.0085 -0.00425 -0.0109 0.0 -0.012 0.00425 -0.0109 .0085 -0.0085 0.0109 -0.00425 0.012 0.0 0.0109 0.00425 0.0085 0.0085 0.00425 0.0109 0.0 0.012scale='1.7 1.7 1.7 1.7 1.4 1.4 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.2 1.2 1.35 1.35 1.35 1.35 1.35 1.35spine='0 0 0 0 0.03 0 0 0.05 0 0 0.07 0 0 0.1 0 0 0.15 0 0 0.17 0 0 0.20 0 0 0.23 0 0 0.24 0 0 0.25 0'/>
165                                                         </Shape>
166                                                    </Transform>
167                                                    <Transform DEF='TelescopeBeltFronttranslation='0 0.45 -0.05'>
168                                                         <Shape>
169                                                              <Appearance USE='BarrelColor'/>
170                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013 0.0 0.012 -0.00425 0.0109 -0.0085 0.0085 -0.0109 0.00425 -0.012 -0.0 -0.0109 -0.00425 -0.0085 -0.0085 -0.00425 -0.0109 0.0 -0.012 0.00425 -0.0109 .0085 -0.0085 0.0109 -0.00425 0.012 0.0 0.0109 0.00425 0.0085 0.0085 0.00425 0.0109 0.0 0.012scale='1.15 1.15 1.15 1.15spine='0 0 0 0 0.015 0'/>
171                                                         </Shape>
172                                                    </Transform>
173                                                    <Transform DEF='TelescopeBeltBacktranslation='0 0.52 -0.05'>
174                                                         <Shape>
175                                                              <Appearance USE='BarrelColor'/>
176                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013 0.0 0.012 -0.00425 0.0109 -0.0085 0.0085 -0.0109 0.00425 -0.012 -0.0 -0.0109 -0.00425 -0.0085 -0.0085 -0.00425 -0.0109 0.0 -0.012 0.00425 -0.0109 .0085 -0.0085 0.0109 -0.00425 0.012 0.0 0.0109 0.00425 0.0085 0.0085 0.00425 0.0109 0.0 0.012scale='1.2 1.2 1.2 1.2spine='0 0 0 0 0.015 0'/>
177                                                         </Shape>
178                                                    </Transform>
179                                                    <Transform DEF='TelescopeBoltFrontrotation='1 0 0 1.57scale='0.65 0.8 0.65translation='0 0.458 -0.0365'>
180                                                         <Shape>
181                                                              <Appearance USE='BarrelColor'/>
182                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013scale='1.2 1.2 1.2 1.2spine='0 0 0 0 0.02 0'/>
183                                                         </Shape>
184                                                    </Transform>
185                                                    <Transform DEF='TelescopeBoltBackrotation='1 0 0 1.57scale='0.65 0.8 0.65translation='0 0.53 -0.0365'>
186                                                         <Shape>
187                                                              <Appearance USE='BarrelColor'/>
188                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013scale='1.2 1.2 1.2 1.2spine='0 0 0 0 0.02 0'/>
189                                                         </Shape>
190                                                    </Transform>
191                                                    <Transform DEF='AdjustmentLeftrotation='0 0 1 1.57translation='-0.013 0.49 -0.048'>
192                                                         <Shape>
193 
                                                            <!-- Appearance TelescopeAdjustmentColor is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                                                            <Appearance DEF='TelescopeAdjustmentColor'>
194                                                                   <Material diffuseColor='0.1 0.1 0.1emissiveColor='0.3 0.3 0.3shininess='0.7specularColor='0.1 0.1 0.1'/>
195                                                              </Appearance>
196                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.008 0.008 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.008 -0.008 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.008 -0.008 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.008 0.008 -0.00494 0.01196 0.00 0.013scale='0.8 0.8 0.8 0.8spine='0 0 0 0 0.01 0'/>
197                                                         </Shape>
198                                                    </Transform>
199                                                    <Transform DEF='AdjustmentRightrotation='0 0 1 1.57translation='0.023 0.49 -0.048'>
200                                                         <Shape>
201                                                              <Appearance USE='TelescopeAdjustmentColor'/>
202                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.008 0.008 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.008 -0.008 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.008 -0.008 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.008 0.008 -0.00494 0.01196 0.00 0.013scale='0.8 0.8 0.8 0.8spine='0 0 0 0 0.01 0'/>
203                                                         </Shape>
204                                                    </Transform>
205                                                    <Transform DEF='AdjustmentToprotation='1 0 0 1.57translation='0 0.49 -0.08'>
206                                                         <Shape>
207                                                              <Appearance USE='TelescopeAdjustmentColor'/>
208                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.008 0.008 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.008 -0.008 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.008 -0.008 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.008 0.008 -0.00494 0.01196 0.00 0.013scale='0.8 0.8 0.8 0.8spine='0 0 0 0 0.01 0'/>
209                                                         </Shape>
210                                                    </Transform>
211                                                    <Transform DEF='Adjustmentrotation='1 0 0 1.57translation='0 0.49 -0.072'>
212                                                         <Shape>
213                                                              <Appearance USE='TelescopeAdjustmentColor'/>
214                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013scale='0.6 0.6 0.6 0.6spine='0 0 0 0 0.005 0'/>
215                                                         </Shape>
216                                                    </Transform>
217                                                    <Transform DEF='AdjustmentTelerotation='1 0 0 1.57translation='0 0.49 -0.067'>
218                                                         <Shape>
219                                                              <Appearance USE='TelescopeColor'/>
220                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 0.013 0.00 0.01196 -0.00494 0.00923 -0.00923 0.00494 -0.01196 0.00 -0.013 -0.00494 -0.01196 -0.00923 -0.00923 -0.01196 -0.00494 -0.013 -0.0 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013scale='0.6 0.6 0.6 0.6spine='0 0 0 0 0.005 0'/>
221                                                         </Shape>
222                                                    </Transform>
223                                               </Transform>
224                                               <Transform DEF='HandRestrotation='0.58 -0.58 0.58 2.09scale='2 2 2translation='-0.38 0.012 0'>
225                                                    <Shape>
226 
                                                       <!-- Appearance HandrestColor is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                                                       <Appearance DEF='HandrestColor'>
227                                                              <Material diffuseColor='0.3 0.3 0.3'/>
228                                                         </Appearance>
229                                                         <Extrusion creaseAngle='1.57crossSection='0.0 0.013 0.00494 0.01196 0.00923 0.00923 0.01196 0.00494 -0.01196 0.00494 -0.00923 0.00923 -0.00494 0.01196 0.00 0.013scale='0.6 2.0 0.4 2.3spine='0 -0.1 0 0.0 0.09 0.0'/>
230                                                    </Shape>
231                                               </Transform>
232                                               <Transform DEF='Handle'>
233                                                    <Transform DEF='HandleBodyrotation='0 0 1 -0.4translation='-0.57 -0.0274 0.0'>
234                                                         <Shape>
235                                                              <Appearance USE='HandrestColor'/>
236                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.021 0.0435 0.02 0.057 0.01 0.06 0.0 0.057 -0.01 0.0435 -0.02 0.0 -0.021 -0.0435 -0.02 -0.057 -0.01 -0.06 0.0 -0.057 0.01 -0.0435 0.02 0.0 0.021scale='0.38 0.38 0.36 0.36 0.3 0.3 0.25 0.25 0.32 0.34spine='-0.03 -0.09 0.0 -0.03 -0.05 0.0 -0.022 -0.025 0.0 -0.01 -0.01 0.0 0.02 0.01 0.0'/>
237                                                         </Shape>
238                                                    </Transform>
239                                                    <Transform DEF='HandleEndrotation='0 0 1 0.385translation='-0.648 -0.1168 0.0'>
240                                                         <Shape>
241                                                              <Appearance USE='BarrelEndColor'/>
242                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.021 0.0435 0.02 0.057 0.01 0.06 0.0 0.057 -0.01 0.0435 -0.02 0.0 -0.021 -0.0435 -0.02 -0.057 -0.01 -0.06 0.0 -0.057 0.01 -0.0435 0.02 0.0 0.021scale='0.37 0.37 0.38 0.38spine='0.02 0.01 0.0 0.021 0.011 0.0'/>
243                                                         </Shape>
244                                                    </Transform>
245                                               </Transform>
246                                               <Transform DEF='Stack'>
247                                                    <Transform DEF='StackBodyrotation='0.58 0.58 -0.58 2.09translation='-0.7 -0.145 0'>
248                                                         <Transform rotation='1 0 0 -0.25'>
249                                                              <Shape>
250                                                                   <Appearance USE='TelescopeColor'/>
251                                                                   <Extrusion creaseAngle='1.57crossSection='0.0 0.06 0.01 0.057 0.02 0.0435 0.021 0.0 0.02 -0.0435 0.01 -0.057 0.0 -0.06 -0.01 -0.057 -0.02 -0.0435 -0.021 0.0 -0.02 0.0435 -0.01 0.057 0.0 0.06scale='1.0 1.0 0.5 0.5 0.1 0.1spine='0 -0.1 -0.09 0.0 0.1 -0.09 0.0 0.12 -0.09'/>
252                                                              </Shape>
253                                                         </Transform>
254                                                    </Transform>
255                                                    <Transform DEF='StackEndrotation='0.58 0.58 -0.58 2.09translation='-0.918 -0.2015 0'>
256                                                         <Transform rotation='1 0 0 -0.25'>
257                                                              <Shape>
258 
                                                                 <!-- Appearance StackColor is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                                                                 <Appearance DEF='StackColor'>
259                                                                        <Material ambientIntensity='0.1diffuseColor='0.85 0.85 0.85shininess='0.8specularColor='0.85 0.85 0.85'/>
260                                                                   </Appearance>
261                                                                   <Extrusion creaseAngle='1.57crossSection='0.0 0.06 0.01 0.057 0.02 0.0435 0.021 0.0 0.02 -0.0435 0.01 -0.057 0.0 -0.06 -0.01 -0.057 -0.02 -0.0435 -0.021 0.0 -0.02 0.0435 -0.01 0.057 0.0 0.06scale='0.9 0.9 1.0 1.0spine='0.0 0.119 -0.09 0.0 0.125 -0.09'/>
262                                                              </Shape>
263                                                         </Transform>
264                                                    </Transform>
265                                               </Transform>
266                                               <Transform DEF='Trigger'>
267                                                    <Transform DEF='TriggerGuardtranslation='-0.54 -0.042 0'>
268                                                         <Shape>
269                                                              <Appearance USE='HandrestColor'/>
270                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.006 0.001 0.0057 0.001 -0.0057 0.0 -0.006 -0.001 -0.0057 -0.001 0.0057 0.0 0.006spine='-0.02 0.0 0.0 -0.028 -0.01 0.0 -0.03 -0.02 0.0 -0.021 -0.031 0.0 -0.006 -0.035 0.0 0.01 -0.033 0.0 0.02 -0.02 0.0 0.02 -0.01 0.0 0.021 0.0 0.0'/>
271                                                         </Shape>
272                                                    </Transform>
273                                                    <Transform DEF='TriggerPintranslation='-0.565 -0.042 0'>
274                                                         <Shape>
275                                                              <Appearance USE='BarrelColor'/>
276                                                              <Extrusion creaseAngle='1.57crossSection='0.0 0.006 0.001 0.0057 0.001 -0.0057 0.0 -0.006 -0.001 -0.0057 -0.001 0.0057 0.0 0.006scale='1.5 1.0 1.0 1.0 0.8 0.8 0.7 0.7spine='0.01 0.0 0.0 0.011 -0.01 0.0 0.015 -0.02 0.0 0.02 -0.025 0.0'/>
277                                                         </Shape>
278                                                    </Transform>
279                                               </Transform>
280                                               <Transform DEF='SafetyPinscale='2.2 1.35 0.8translation='-0.565 -0.008 0.0085'>
281                                                    <Shape>
282                                                         <Appearance USE='StackColor'/>
283                                                         <Extrusion creaseAngle='1.57crossSection='0.0 0.006 0.001 0.0057 0.001 -0.0057 0.0 -0.006 -0.001 -0.0057 -0.001 0.0057 0.0 0.006scale='1.5 1.0 1.0 1.0 0.8 0.8 0.3 0.3spine='0.01 0.0 0.0 0.01 -0.01 0.0 0.008 -0.02 0.0 0.006 -0.025 0.0'/>
284                                                    </Shape>
285                                               </Transform>
286                                               <Transform DEF='Safetyscale='1.0 0.7 0.6translation='-0.546 -0.04 0.009'>
287                                                    <Shape>
288                                                         <Appearance USE='StackColor'/>
289                                                         <Sphere radius='0.008'/>
290                                                    </Shape>
291                                               </Transform>
292                                               <Group>
293 
                                                  <!-- ROUTE information for TriggerScript node:  [from clockStartTime to Clock.set_startTime ] [from clockStartTime to RifleFireSoundAudio.set_startTime ] -->
                                                  <Script DEF='TriggerScript'>
294                                                         <field name='triggertype='SFBoolaccessType='inputOnly'/>
295                                                         <field name='firetype='SFBoolaccessType='outputOnly'/>
296                                                         <field name='animationStartTimetype='SFTimeaccessType='inputOnly'/>
297                                                         <field name='clockStartTimetype='SFTimeaccessType='outputOnly'/>
298                                                         <IS>
299                                                              <connect nodeField='triggerprotoField='trigger'/>
300                                                              <connect nodeField='animationStartTimeprotoField='animationStartTime'/>
301                                                         </IS>
  <![CDATA[
                      
ecmascript:


function trigger(value, timeStamp)
{
      //print ('trigger = ' + value);
      if (value == true)
      {
            fire = true;
      }
      else
      {
            fire = false;
      }
       //print ('fire = ' + fire);
}



function animationStartTime(time, timeStamp)
{
          //print ('time = ' + time);
          if (fire == true)
                   clockStartTime = time;
}

                    
]]>
303                                                    </Script>
304 
                                                  <!-- ROUTE information for Clock node:  [from TriggerScript.clockStartTime to set_startTime ] [from fraction_changed to TriggerInterpolator.set_fraction ] [from fraction_changed to FlashInterpolator.set_fraction ] [from fraction_changed to ShootShockInterpolator.set_fraction ] -->
                                                  <TimeSensor DEF='ClockcycleInterval='0.5'/>
305                                                    <Sound DEF='RifleFireSound'>
306 
                                                       <!-- ROUTE information for RifleFireSoundAudio node:  [from TriggerScript.clockStartTime to set_startTime ] -->
                                                       <AudioClip DEF='RifleFireSoundAudiodescription='Rifle fire'   url=' "RifleFire.wav" "../../Weapons/SmallArms/RifleFire.wav" "https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleFire.wav" '/>
307                                                    </Sound>
308 
                                                  <!-- ROUTE information for TriggerInterpolator node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to BulletTransform.set_translation ] -->
                                                  <PositionInterpolator DEF='TriggerInterpolatorkey='0.0 0.2 0.49 0.8 1.0keyValue='-0.64 0.0 0.0 -0.40 0.0 0.0 1 0.0 0.0 2 0.0 0.0 51 0.0 0.0'/>
309 
                                                  <!-- ROUTE information for FlashInterpolator node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to FlashTransform.set_translation ] -->
                                                  <PositionInterpolator DEF='FlashInterpolatorkey='0.0 0.3 0.5 0.8 1.0keyValue='0 0.13 0 0 -0.1 0 0 -0.1 0 0 0.15 0 0 0.13 0'/>
310 
                                                  <!-- ROUTE information for ShootShockInterpolator node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to ShootShockTransform.set_translation ] -->
                                                  <PositionInterpolator DEF='ShootShockInterpolatorkey='0.0 0.8 0.9 1.0keyValue='-0.64 0.0 0.0 -0.70 0.0 0.0 -0.66 0.0 0.0 -0.62 0.0 0.0'/>
311                                                    < ROUTE  fromNode='TriggerScript' fromField='clockStartTime' toNode='Clock' toField='set_startTime'/>
312                                                    < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='TriggerInterpolator' toField='set_fraction'/>
313                                                    < ROUTE  fromNode='TriggerInterpolator' fromField='value_changed' toNode='BulletTransform' toField='set_translation'/>
314                                                    <!-- Rifle Sound -->
315                                                    < ROUTE  fromNode='TriggerScript' fromField='clockStartTime' toNode='RifleFireSoundAudio' toField='set_startTime'/>
316                                                    <!-- Flash animation -->
317                                                    < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='FlashInterpolator' toField='set_fraction'/>
318                                                    < ROUTE  fromNode='FlashInterpolator' fromField='value_changed' toNode='FlashTransform' toField='set_translation'/>
319                                                    <!-- Shoot shock animation -->
320                                                    < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='ShootShockInterpolator' toField='set_fraction'/>
321                                                    < ROUTE  fromNode='ShootShockInterpolator' fromField='value_changed' toNode='ShootShockTransform' toField='set_translation'/>
322                                               </Group>
323                                          </Transform>
324                                     </Group>
325                                </Group>
326                                <WorldInfo info='"null node"'/>
327                           </LOD>
328                      </Group>
329                 </ProtoBody>
330            </ProtoDeclare>
331            <!-- ==================== -->
332            <Background skyColor='0.604 0.753 0.804'/>
333            <Anchor description='RifleM24Exampleparameter='"target=_blank"'   url=' "RifleM24Example.x3d" "../../Weapons/SmallArms/RifleM24Example.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleM24Example.x3d" "../../Weapons/SmallArms/RifleM24Example.wrl" "RifleM24Example.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleM24Example.wrl" '>
334                 <Shape>
335                      <Text string='"RifleM24Prototype" "is a prototype definition file" "" "To see an example scene" "click on this text and view" "RifleM24Example"'>
336                           <FontStyle justify='"MIDDLE" "MIDDLE"'/>
337                      </Text>
338                      <Appearance>
339                           <Material diffuseColor='0.819608 0 0.023529'/>
340                      </Appearance>
341                 </Shape>
342            </Anchor>
343       </Scene>
344  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: Adjustment, AdjustmentLeft, AdjustmentRight, AdjustmentTele, AdjustmentTop, Barrel, BarrelBack, BarrelBulletLoad, BarrelBulletLoadEnd, BarrelCenter, BarrelColor, BarrelEnd, BarrelEndColor, BarrelFront, BarrelPoint, BulletColor, BulletGuide, BulletTransform, CircleLine, Clock, Flame1, Flame2, Flame3, FlashInterpolator, FlashTransform, Handle, HandleBody, HandleEnd, HandRest, HandrestColor, High, RifleFireSound, RifleFireSoundAudio, Safety, SafetyPin, ShootShockInterpolator, ShootShockTransform, Stack, StackBody, StackColor, StackEnd, Telescope, TelescopeAdjustmentColor, TelescopeBeltBack, TelescopeBeltFront, TelescopeBoltBack, TelescopeBoltFront, TelescopeColor, TelescopeLensForEye, TelescopeLensFront, TelescopeMain, Trigger, TriggerGuard, TriggerInterpolator, TriggerPin, TriggerScript, Viewpoints

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5

Index for ProtoDeclare definition: RifleM24
-->
X3D Tooltips element index: Anchor, Appearance, AudioClip, Background, Color, connect, Coordinate, Cylinder, Extrusion, field, FontStyle, Group, head, IndexedFaceSet, IndexedLineSet, IS, LOD, Material, meta, PositionInterpolator, ProtoBody, ProtoDeclare, ProtoInterface, ROUTE, Scene, Script, Shape, Sound, Sphere, Text, TimeSensor, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

Event Graph ROUTE Table entries with 8 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.

TriggerScript
Script
clockStartTime
SFTime

ROUTE
event to
(1)
Clock
TimeSensor
set_startTime
SFTime
then
 
 
 
Clock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
TriggerInterpolator
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
TriggerInterpolator
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
BulletTransform
Transform
set_translation
SFVec3f
  then
 
 
 
Clock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
FlashInterpolator
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
FlashInterpolator
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
FlashTransform
Transform
set_translation
SFVec3f
  then
 
 
 
Clock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
ShootShockInterpolator
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
ShootShockInterpolator
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
ShootShockTransform
Transform
set_translation
SFVec3f
TriggerScript
Script
clockStartTime
SFTime

ROUTE
event to
(1)
RifleFireSoundAudio
AudioClip
set_startTime
SFTime

line 333
Anchor
description='RifleM24Example' 
User-interaction hint for this node. 

Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleM24PrototypeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleM24Prototype.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
    <ProtoDeclare name='ProtoName'> <field name='fieldName'/> </ProtoDeclare> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->