<?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='ExplosionExample.x3d' name='title'/>
    <meta content='Animated explosion with sound implemented as a prototype instance' name='description'/>
    <meta content='Don Brutzman' name='creator'/>
    <meta content='29 September 2007' name='created'/>
    <meta content='15 April 2011' name='modified'/>
    <meta content='ExplosionPrototypeExample.png' name='Image'/>
    <meta content='ExplosionExampleVideo.mov' name='MovingImage'/>
    <meta content='ExplosionPrototype.x3d' name='reference'/>
    <meta content='https://www.web3d.org/x3d/content/examples/Savage/Tools/Explosions/ExplosionExample.x3d' name='identifier'/>
    <meta content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit' name='generator'/>
    <meta content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html' name='generator'/>
    <meta content='../../license.html' name='license'/>
  </head>
  <Scene>
    <WorldInfo title='ExplosionExample.x3d'/>
    <ExternProtoDeclare appinfo='Simple explosion animation of a sphere covered with a flame texture, plus a sound effect' name='Explosion' url='"ExplosionPrototype.x3d#Explosion" "../../../Savage/Tools/Explosions/ExplosionPrototype.x3d#Explosion" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Explosions/ExplosionPrototype.x3d#Explosion" "ExplosionPrototype.wrl#Explosion" "../../../Savage/Tools/Explosions/ExplosionPrototype.wrl#Explosion" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Explosions/ExplosionPrototype.wrl#Explosion"'>
      <field accessType='inputOnly' appinfo='time event to trigger explosion' name='detonateTime' type='SFTime'/>
      <field accessType='inputOutput' appinfo='size of explosion sphere' name='size' type='SFVec3f'/>
    </ExternProtoDeclare>
    <ProtoInstance DEF='ExplosionInstance' name='Explosion'>
      <fieldValue name='size' value='3 3 3'/>
    </ProtoInstance>
    <Group>
      <TouchSensor DEF='TextTouch' description='Click text to trigger explosion'/>
      <Shape>
        <Text string='"Click text to trigger" "explosion prototype"'>
          <FontStyle justify='"MIDDLE" "MIDDLE"'/>
        </Text>
        <Appearance>
          <Material diffuseColor='0.2 0.2 0.8'/>
        </Appearance>
      </Shape>
      <ROUTE fromField='touchTime' fromNode='TextTouch' toField='detonateTime' toNode='ExplosionInstance'/>
    </Group>
  </Scene>
</X3D>