<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN"   "http://www.web3d.org/specifications/x3d-3.1.dtd">
<X3D profile='Immersiveversion='3.1xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.1.xsd '>
<head>
<meta name='titlecontent='SphereSensor-Lefty.x3d'/>
<meta name='descriptioncontent='Using a SphereSensor, the shark Lefty can be oriented into any position.'/>
<meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
<meta name='createdcontent='10 June 2006'/>
<meta name='modifiedcontent='23 March 2007'/>
<meta name='referencecontent=' http://X3dGraphics.com '/>
<meta name='referencecontent=' http://www.web3d.org/x3d/content/examples/help.html '/>
<meta name='rightscontent='Copyright 2006, Leonard Daly and Don Brutzman'/>
<meta name='subjectcontent=' X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com '/>
<meta name='identifiercontent=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter08-UserInteractivity/SphereSensor-Lefty.x3d '/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent='../license.html'/>
</head>
<!--

Index for ExternProtoDeclare definition: WhereAmI
Index for DEF nodes: OrientationControl, OrientationDisplay, ReOrient, Rotator
Index for Viewpoint image: Viewpoint_1
-->
<Scene>
<ExternProtoDeclare name='WhereAmI'
  url=' "../Chapter14-Prototypes/WhereAmI.x3d#WhereAmI" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14-Prototypes/WhereAmI.x3d#WhereAmI" "../Chapter14-Prototypes/WhereAmI.wrl#WhereAmI" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14-Prototypes/WhereAmI.wrl#WhereAmI" '/>
<ProtoInstance name='WhereAmIcontainerField='children'/>
<Background skyColor='1 1 1'/>
<Viewpoint description='Book Vieworientation='0 -1 0 0.05position='-0.06 -0.29 8.78'/>
<Transform DEF='OrientationControltranslation='2 -2 3'>
<!-- Rotator ROUTEs:  [from rotation_changed to OrientationDisplay.rotation ] [from rotation_changed to ReOrient.rotation ] -->
<SphereSensor DEF='Rotator'/>
<!-- OrientationDisplay ROUTE:  [from Rotator.rotation_changed to rotation ] -->
<Transform DEF='OrientationDisplay'>
<Shape>
<Appearance>
<Material diffuseColor='0 0 1'/>
</Appearance>
<Sphere radius='.5'/>
</Shape>
</Transform>
</Transform>
<Transform translation='0 0 7'>
<!-- ReOrient ROUTE:  [from Rotator.rotation_changed to rotation ] -->
<Transform DEF='ReOrient'> </Transform>
</Transform>
<ROUTE fromNode='RotatorfromField='rotation_changedtoNode='OrientationDisplaytoField='rotation'/>
<ROUTE fromNode='RotatorfromField='rotation_changedtoNode='ReOrienttoField='rotation'/>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definition: WhereAmI
Index for DEF nodes: OrientationControl, OrientationDisplay, ReOrient, Rotator
Index for Viewpoint image: Viewpoint_1
-->

<!-- Tag color codes: <Node DEF='idName' attribute='value'/> <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->