<?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='Immersive' 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='SenseDecideActEngagePrototype.x3d' name='title'/>
    <meta content='Sense-Decide-Act Prototype utilized for Anti-Terrorism/Force Protection Simulation.' name='description'/>
    <meta content='James Harney' name='creator'/>
    <meta content='6 February 2002' name='created'/>
    <meta content='1 October 2023' name='modified'/>
    <meta content='https://www.web3d.org/x3d/content/examples/Savage/Scenarios/LimitedObjectiveExperimentPortHueneme/SenseDecideActEngagePrototype.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>
    <WorldInfo title='SenseDecideActEngagePrototype.x3d'/>
    <ExternProtoDeclare name='RHIB' url='"../../Scenarios/UssColeTerroristAttack/RHIBPrototype.wrl#RHIB" "RHIBPrototype.wrl#RHIB" "RHIBPrototype.x3d#RHIB" "https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/RHIBPrototype.wrl#RHIB" "https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/RHIBBoatPrototype.x3d#RHIB"'>
      <field accessType='inputOnly' name='startExplosion' type='SFTime'/>
    </ExternProtoDeclare>
    <ProtoDeclare name='SenseDecideActEngagePrototype'>
      <ProtoInterface>
        <field accessType='inputOutput' name='engagementPosition' type='SFVec3f'/>
        <field accessType='inputOutput' name='engagementTextPosition' type='SFVec3f'/>
      </ProtoInterface>
      <ProtoBody>
        <Group>
          <NavigationInfo type='"EXAMINE" "FLY" "ANY"' visibilityLimit='24000'/>
          <Background groundAngle='1.309' groundColor='0.2 0.2 0.8 1.0 1.0 1.0' skyAngle='1.309 1.571' skyColor='0.0 0.2 0.7 0.0 0.5 1.0 1.0 1.0 1.0'/>
          <Transform DEF='OverallTransform'>
            <Transform>
              <Transform DEF='EngageSphereTransform'>
                <IS>
                  <connect nodeField='scale' protoField='engagementPosition'/>
                </IS>
                <Shape>
                  <Appearance>
                    <Material diffuseColor='1 0 0' transparency='.75'/>
                  </Appearance>
                  <Sphere radius='.5'/>
                </Shape>
              </Transform>
            </Transform>
            <Transform DEF='EngageTextTransform'>
              <IS>
                <connect nodeField='translation' protoField='engagementTextPosition'/>
              </IS>
              <Shape>
                <Appearance>
                  <Material diffuseColor='1 0 0'/>
                </Appearance>
                <Text DEF='EngagementRangeValue' string='"Engagement Range"'>
                  <FontStyle justify='"MIDDLE" "MIDDLE"' size='3' style='BOLD'/>
                </Text>
              </Shape>
            </Transform>
          </Transform>
        </Group>
      </ProtoBody>
    </ProtoDeclare>
    <!-- End of Proto definition, now we're just showing how to use it. -->
    <Transform>
      <Viewpoint description='Initial View point' position='0 100 500'/>
      <Transform translation='0 2 0'>
        <ProtoInstance DEF='ColeRhib1' name='RHIB'/>
        <Transform translation='1 -.5 0'>
          <Inline url='"../../../HumanoidAnimation/NancyStandShootRifleM24.wrl" "https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Legacy/NancyStandShootRifleM24.wrl"'/>
          <Transform translation='0 1.5 0'>
            <ProtoInstance DEF='myRanges' name='SenseDecideActEngagePrototype'>
              <fieldValue name='engagementPosition' value='400 400 400'/>
              <fieldValue name='engagementTextPosition' value='0.0 100 400'/>
            </ProtoInstance>
          </Transform>
        </Transform>
      </Transform>
    </Transform>
    <Transform DEF='PlaneTransform'>
      <Shape>
        <Box size='1000 2 1000'/>
        <Appearance>
          <Material diffuseColor='0 0 .5' emissiveColor='0 0 .5'/>
        </Appearance>
      </Shape>
    </Transform>
  </Scene>
</X3D>