<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Interchange' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  <head>
    <meta content='SpaceAttack.x3d' name='title'/>
    <meta content='Mike Perry' name='creator'/>
    <meta content='17 August 2000' name='created'/>
    <meta content='28 November 2019' name='modified'/>
    <meta content='Three Space Ships Attack' name='description'/>
    <meta content='https://www.web3d.org/x3d/content/examples/Savage/Space/SpaceAttack/SpaceAttack.x3d' name='identifier'/>
    <meta content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit' name='generator'/>
    <meta content='../../license.html' name='license'/>
  </head>
  <Scene>
    <!-- The Background Planets -->
    <WorldInfo title='SpaceAttack.x3d'/>
    <Transform translation='0 0 -15'>
      <Shape>
        <Sphere radius='2.4'/>
        <Appearance>
          <ImageTexture url='"../SolarSystem/mars.jpg" "https://www.web3d.org/x3d/content/examples/Savage/Space/SolarSystem/mars.jpg"'/>
        </Appearance>
      </Shape>
    </Transform>
    <Transform translation='-15 0 0'>
      <Shape>
        <Sphere radius='3'/>
        <Appearance>
          <ImageTexture url='"../SolarSystem/sun.jpg" "https://www.web3d.org/x3d/content/examples/Savage/Space/SolarSystem/sun.jpg"'/>
        </Appearance>
      </Shape>
    </Transform>
    <Transform translation='25 0 -4'>
      <Shape>
        <Sphere radius='2'/>
        <Appearance>
          <ImageTexture url='"../SolarSystem/neptune.jpg" "https://www.web3d.org/x3d/content/examples/Savage/Space/SolarSystem/neptune.jpg"'/>
        </Appearance>
      </Shape>
    </Transform>
    <Transform translation='0 0 25'>
      <Shape>
        <Sphere radius='2'/>
        <Appearance>
          <ImageTexture url='"../../earth-topo.png" "../../earth-topo-small.gif" "https://www.web3d.org/x3d/content/examples/Savage/Space/SpaceAttack/../../earth-topo.png" "https://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif"'/>
        </Appearance>
      </Shape>
    </Transform>
    <!-- camera angles -->
    <Viewpoint DEF='camera1' description='camera 1' fieldOfView='.9599' orientation='1 0 0 -.2618' position='.5 .5 12'/>
    <Viewpoint DEF='camera2' description='camera 2' orientation='0 1 0 1.57' position='7 0 0'/>
    <Viewpoint DEF='camera3' description='camera 3' orientation='0 1 0 -.7854' position='-5 0 5'/>
    <Viewpoint DEF='camera4' description='camera 4' fieldOfView='1.0472' orientation='0 1 0 3.14' position='0 2 -2'/>
    <!-- Fighters -->
    <Transform DEF='Threeflight' rotation='1 0 0 1.57'>
      <Group DEF='Fighter1'>
        <Transform scale='1 3 1' translation='0.0 0.5 -0.3'>
          <Shape>
            <Sphere radius='0.14'/>
            <Appearance DEF='Cockpit'>
              <Material emissiveColor='0 0 1' transparency='0.55'/>
            </Appearance>
          </Shape>
        </Transform>
        <Transform scale='0.8 0.8 0.8' translation='0.0 0.51 -0.3'>
          <Shape>
            <Sphere DEF='Pilot' radius='0.16'/>
            <Appearance>
              <Material diffuseColor='1.0 0.0 0.0'/>
            </Appearance>
          </Shape>
        </Transform>
        <Transform scale='1 3.8 1'>
          <Shape>
            <Sphere radius='0.4'/>
            <Appearance>
              <Material diffuseColor='0.8 0.7 0.3'/>
            </Appearance>
          </Shape>
        </Transform>
        <Transform rotation='1 0 0 3.14' translation='0.5 -2.0 0.0'>
          <Shape DEF='Afterburner'>
            <Cone bottomRadius='0.25' height='0.9'/>
            <Appearance>
              <Material diffuseColor='1.0 0.2 0.2' transparency='0.5'/>
            </Appearance>
          </Shape>
        </Transform>
        <Transform rotation='1 0 0 3.14' translation='-0.5 -2.0 0.0'>
          <Shape USE='Afterburner'/>
        </Transform>
        <Transform translation='.5 -1 0'>
          <Shape DEF='Engine'>
            <Cylinder bottom='false' radius='.25'/>
            <Appearance>
              <Material diffuseColor='0.8 0.7 0.3'/>
            </Appearance>
          </Shape>
        </Transform>
        <Transform translation='-0.5 -1 0'>
          <Shape USE='Engine'/>
        </Transform>
        <Transform scale='9 1 1'>
          <Shape DEF='Wing'>
            <Appearance>
              <Material diffuseColor='0.8 0.7 0.3'/>
            </Appearance>
            <Cone bottomRadius='0.2' height='2.8'/>
          </Shape>
        </Transform>
        <Transform scale='1 3 1' translation='1.0 -0.6 0.2'>
          <Shape DEF='Bomb'>
            <Sphere radius='.1'/>
            <Appearance>
              <Material diffuseColor='0 0.8 0'/>
            </Appearance>
          </Shape>
        </Transform>
        <Transform scale='1 3 1' translation='-1.0 -0.6 0.2'>
          <Shape USE='Bomb'/>
        </Transform>
      </Group>
      <Transform translation='2.5 -2.0 1.0'>
        <Group USE='Fighter1'/>
      </Transform>
      <Transform translation='-2.5 -2.0 1.3'>
        <Group USE='Fighter1'/>
      </Transform>
    </Transform>
    <TimeSensor DEF='Clock' cycleInterval='10.0' loop='true'/>
    <PositionInterpolator DEF='Flightpath' key='0.00 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.20 0.21 0.22 0.23 0.24 0.25 0.26 0.27 0.28 0.29 0.30 0.31 0.32 0.33 .34 .35 0.36 0.37 0.50 0.70 0.80 0.90 1' keyValue='0.0 0.0 -10.0 0.0 0.0 0.0 0.0 0.0 0.5 0.0 0.0 1.0 0.0 0.0 1.5 0.0 0.0 2.0 0.0 0.0 3.5 0.0 0.0 4.0 0.0 0.0 4.5 0.0 0.0 5.0 0.0 0.0 5.5 0.0 0.0 6.0 0.0 0.0 6.5 0.0 0.0 7.0 0.0 0.0 7.5 0.0 0.0 8.0 0.0 0.0 8.5 0.0 0.0 9.0 0.0 0.0 10.0 0.0 0.0 10.5 0.0 0.0 11.0 0.0 0.0 11.5 0.0 0.0 12.0 0.0 0.0 12.5 0.0 0.0 13.0 0.0 0.0 13.5 0.0 0.0 14.0 0.0 0.0 14.5 0.0 0.0 15.0 0.0 0.0 15.5 0.0 0.0 17.0 0.0 0.0 18.0 0.0 0.0 19.0'/>
    <ROUTE fromField='fraction_changed' fromNode='Clock' toField='set_fraction' toNode='Flightpath'/>
    <ROUTE fromField='value_changed' fromNode='Flightpath' toField='set_translation' toNode='Threeflight'/>
  </Scene>
</X3D>