<?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, Lefty shark can be oriented in any direction.'/>
<meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
<meta name='createdcontent='10 June 2006'/>
<meta name='modifiedcontent='10 February 2008'/>
<meta name='referencecontent=' http://X3dGraphics.com '/>
<meta name='referencecontent=' http://www.web3d.org/x3d/content/examples/X3dResources.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 DEF nodes: OrientationControl, OrientationDisplay, ReOrient, Rotator
Index for Viewpoint image: Viewpoint_1
-->
<Scene>
<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='Rotatordescription='drag sphere to rotate Lefty'/>
<!-- 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'> </Transform>
<ROUTE fromNode='RotatorfromField='rotation_changedtoNode='OrientationDisplaytoField='rotation'/>
<ROUTE fromNode='RotatorfromField='rotation_changedtoNode='ReOrienttoField='rotation'/>
</Scene>
</X3D>
<!--

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

<!-- Tag color codes: <Node DEF='idName' attribute='value'/> -->