@prefix :        <https://www.web3d.org/x3d/content/examples/Basic/Followers/RoomDesired.ttl#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema:  <http://schema.org/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix x3d:     <https://www.web3d.org/specifications/x3d-4.0.xsd#> .
@prefix x3do:    <https://www.web3d.org/specifications/X3dOntology4.0#> .

:X3D a owl:NamedIndividual, x3do:X3D ;
  x3do:hasHead :head ;
  x3do:hasScene :Scene ;
  x3do:profile 'Immersive' ;
  x3do:version '3.2' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.2.xsd' .
:head a owl:NamedIndividual, x3do:head ;
  x3do:hasParent :X3D ;
  x3do:hasMeta :meta_1_1, :meta_1_2, :meta_1_3, :meta_1_4, :meta_1_5, :meta_1_6, :meta_1_7, :meta_1_8, :meta_1_9, :meta_1_10, :meta_1_11, :meta_1_12, :meta_1_13, :meta_1_14, :meta_1_15, :meta_1_16, :meta_1_17, :meta_1_18, :meta_1_19 .
:meta_1_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'RoomDesired.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D Follower example' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Herbert Stocker' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'translator' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '18 April 2006' ;
  x3do:name 'created' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '2 December 2011' ;
  x3do:name 'translated' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '2 December 2024' ;
  x3do:name 'modified' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'originals/room-desired.wrl' ;
  x3do:name 'reference' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Stocker_06_Followers.pdf' ;
  x3do:name 'reference' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'http://www.hersto.com/Publications/Followers' ;
  x3do:name 'reference' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D version 3.2 or greater' ;
  x3do:name 'requires' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D Follower Chaser Damper' ;
  x3do:name 'subject' .
:meta_1_13 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'under development' ;
  x3do:name 'warning' .
:meta_1_14 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/specifications/ISO-IEC-19775-1.2-X3D-AbstractSpecification/Part01/components/followers.html' ;
  x3do:name 'reference' .
:meta_1_15 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html' ;
  x3do:name 'reference' .
:meta_1_16 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Basic/Followers/RoomDesired.x3d' ;
  x3do:name 'identifier' .
:meta_1_17 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html' ;
  x3do:name 'generator' .
:meta_1_18 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_19 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "RoomDesired.x3d" .
:meta dcterms:description "X3D Follower example" .
:meta dcterms:creator "Herbert Stocker" .
:meta dcterms:translator "Don Brutzman" .
:meta dcterms:created "18 April 2006" .
:meta dcterms:translated "2 December 2011" .
:meta dcterms:modified "2 December 2024" .
:meta dcterms:reference "originals/room-desired.wrl" .
:meta dcterms:reference "Stocker_06_Followers.pdf" .
:meta dcterms:reference "http://www.hersto.com/Publications/Followers" .
:meta dcterms:requires "X3D version 3.2 or greater" .
:meta dcterms:subject "X3D Follower Chaser Damper" .
:meta dcterms:warning "under development" .
:meta dcterms:reference "https://www.web3d.org/x3d/specifications/ISO-IEC-19775-1.2-X3D-AbstractSpecification/Part01/components/followers.html" .
:meta dcterms:reference "https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Basic/Followers/RoomDesired.x3d" .
:meta dcterms:generator "Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html" .
:meta dcterms:generator "X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit" .
:meta dcterms:license "../../license.html" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasChildren :WorldInfo_2_1, :Background_2_3, :Viewpoint_2_4, :Viewpoint_2_5, :NavigationInfo_2_6, :DirectionalLight_2_7, :PointLight_2_8, :DirectionalLight_2_9, :DirectionalLight_2_10, :Group_2_11, :Group_2_12, :Group_2_13, :Group_2_14, :Group_2_15, :ProtoInstance_2_16, :Worker, :PaintingPositionChaser, :PaintingOrientationChaser ;
  x3do:hasExternProtoDeclare :ExternProtoDeclare_2_2 ;
  x3do:hasROUTE :ROUTE_2_18, :ROUTE_2_19, :ROUTE_2_20, :ROUTE_2_21, :ROUTE_2_22, :ROUTE_2_23, :ROUTE_2_24, :ROUTE_2_25, :ROUTE_2_26, :ROUTE_2_27, :ROUTE_2_30, :ROUTE_2_31, :ROUTE_2_32, :ROUTE_2_33 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'RoomDesired.x3d' .
:ExternProtoDeclare_2_2 a owl:NamedIndividual, x3do:ExternProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_2_1, :field_2_2_2, :field_2_2_3, :field_2_2_4, :field_2_2_5, :field_2_2_6, :field_2_2_7, :field_2_2_8 ;
  x3do:name 'Selection' ;
  x3do:url '"originals/bitmanagement-nodes.x3d#Selection" "https://www.web3d.org/x3d/content/examples/Basic/Followers/originals/bitmanagement-nodes.x3d#Selection" "originals/bitmanagement-nodes.wrl#Selection" "https://www.web3d.org/x3d/content/examples/Basic/Followers/originals/bitmanagement-nodes.wrl#Selection"' .
:field_2_2_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOutput' ;
  x3do:name 'select' ;
  x3do:type 'SFBool' .
:field_2_2_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'addChildren' ;
  x3do:type 'MFNode' .
:field_2_2_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'bboxCenter' ;
  x3do:type 'SFVec3f' .
:field_2_2_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'removeChildren' ;
  x3do:type 'MFNode' .
:field_2_2_5 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOutput' ;
  x3do:name 'children' ;
  x3do:type 'MFNode' .
:field_2_2_6 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'proxy' ;
  x3do:type 'SFNode' .
:field_2_2_7 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'bboxSize' ;
  x3do:type 'SFVec3f' .
:field_2_2_8 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOutput' ;
  x3do:name 'collide' ;
  x3do:type 'SFBool' .
:Background_2_3 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 0.1 0.2 0.3 ) .
:Viewpoint_2_4 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'inside' ;
  x3do:fieldOfView 0.785 ;
  x3do:orientation ( -1.0 -0.0 0.0 0.105 ) ;
  x3do:position ( -0.0 1.7 7.985 ) .
:Viewpoint_2_5 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'outside' ;
  x3do:fieldOfView 0.785 ;
  x3do:orientation ( -1.0 0.0 0.0 0.105 ) ;
  x3do:position ( 0.0 2.068 13.879 ) .
:NavigationInfo_2_6 a owl:NamedIndividual, x3do:NavigationInfo ;
  x3do:hasParent :Scene ;
  x3do:avatarSize ( 0.25 1.2 0.75 ) ;
  x3do:headlight false .
:DirectionalLight_2_7 a owl:NamedIndividual, x3do:DirectionalLight ;
  x3do:hasParent :Scene ;
  x3do:intensity 0.5 .
:PointLight_2_8 a owl:NamedIndividual, x3do:PointLight ;
  x3do:hasParent :Scene ;
  x3do:location ( 2.5 1.0 0.0 ) ;
  x3do:radius 20.0 .
:DirectionalLight_2_9 a owl:NamedIndividual, x3do:DirectionalLight ;
  x3do:hasParent :Scene ;
  x3do:direction ( 0.0 -1.0 0.0 ) .
:DirectionalLight_2_10 a owl:NamedIndividual, x3do:DirectionalLight ;
  x3do:hasParent :Scene ;
  x3do:intensity 0.5 .
:Group_2_11 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :TouchFloor, :Shape_2_11_2 .
:TouchFloor a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_11 ;
  x3do:DEF 'TouchFloor' ;
  x3do:description 'Touch to move picture here' .
:Shape_2_11_2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Group_2_11 ;
  x3do:hasAppearance :Appearance_2_11_2_1 ;
  x3do:hasGeometry :Box_2_11_2_2 .
:Appearance_2_11_2_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_11_2 ;
  x3do:hasTextureTransform :TextureTransform_2_11_2_1_1 ;
  x3do:hasTexture :ImageTexture_2_11_2_1_2 .
:TextureTransform_2_11_2_1_1 a owl:NamedIndividual, x3do:TextureTransform ;
  x3do:hasParent :Appearance_2_11_2_1 ;
  x3do:scale ( 17.0 17.0 ) .
:ImageTexture_2_11_2_1_2 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_11_2_1 ;
  x3do:url '"floor.png" "https://www.web3d.org/x3d/content/examples/Basic/Followers/floor.png"' .
:Box_2_11_2_2 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_11_2 ;
  x3do:size ( 10.0 0.1 10.0 ) .
:Group_2_12 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :TouchWallFront, :Transform_2_12_2 .
:TouchWallFront a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_12 ;
  x3do:DEF 'TouchWallFront' ;
  x3do:description 'Touch to move picture here' .
:Transform_2_12_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_12 ;
  x3do:hasChildren :ShWall ;
  x3do:translation ( 0.0 1.5 -5.0 ) .
:ShWall a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_12_2 ;
  x3do:hasAppearance :Appearance_2_12_2_1_1 ;
  x3do:hasGeometry :Box_2_12_2_1_2 ;
  x3do:DEF 'ShWall' .
:Appearance_2_12_2_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :ShWall ;
  x3do:hasMaterial :Material_2_12_2_1_1_1 .
:Material_2_12_2_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_12_2_1_1 ;
  x3do:ambientIntensity 0.0567 ;
  x3do:diffuseColor ( 0.52 0.51 0.45 ) ;
  x3do:emissiveColor ( 0.28 0.27 0.24 ) ;
  x3do:shininess 0.53 ;
  x3do:specularColor ( 0.76 0.78 0.54 ) .
:Box_2_12_2_1_2 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :ShWall ;
  x3do:size ( 10.0 3.0 0.1 ) .
:Group_2_13 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :TouchWallLeft, :Transform_2_13_2 .
:TouchWallLeft a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_13 ;
  x3do:DEF 'TouchWallLeft' ;
  x3do:description 'Touch to move picture here' .
:Transform_2_13_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_13 ;
  x3do:hasChildren :ShWall-USE-1 ;
  x3do:rotation ( 0.0 1.0 0.0 -1.571 ) ;
  x3do:translation ( -5.0 1.5 0.0 ) .
:ShWall-USE-1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_13_2 ;
  owl:sameAs :ShWall . # DEF matching this USE
:Group_2_14 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :TouchWallRight, :Transform_2_14_2 .
:TouchWallRight a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_14 ;
  x3do:DEF 'TouchWallRight' ;
  x3do:description 'Touch to move picture here' .
:Transform_2_14_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_14 ;
  x3do:hasChildren :ShWall-USE-2 ;
  x3do:rotation ( 0.0 1.0 0.0 1.571 ) ;
  x3do:translation ( 5.0 1.5 0.0 ) .
:ShWall-USE-2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_14_2 ;
  owl:sameAs :ShWall . # DEF matching this USE
:Group_2_15 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :TouchRoof, :Transform_2_15_2 .
:TouchRoof a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_15 ;
  x3do:DEF 'TouchRoof' ;
  x3do:description 'Touch to move picture here' .
:Transform_2_15_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_15 ;
  x3do:hasChildren :Shape_2_15_2_1 ;
  x3do:translation ( 0.0 3.0 0.0 ) .
:Shape_2_15_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_15_2 ;
  x3do:hasAppearance :Appearance_2_15_2_1_1 ;
  x3do:hasGeometry :Box_2_15_2_1_2 .
:Appearance_2_15_2_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_15_2_1 ;
  x3do:hasMaterial :Material_2_15_2_1_1_1 .
:Material_2_15_2_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_15_2_1_1 ;
  x3do:ambientIntensity 0.0567 ;
  x3do:diffuseColor ( 0.522 0.451 0.447 ) ;
  x3do:emissiveColor ( 0.306 0.235 0.176 ) ;
  x3do:shininess 0.53 ;
  x3do:specularColor ( 0.761 0.541 0.584 ) .
:Box_2_15_2_1_2 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_15_2_1 ;
  x3do:size ( 10.0 0.1 10.0 ) .
:ProtoInstance_2_16 a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Scene ;
  x3do:hasFieldValue :fieldValue_2_16_1, :fieldValue_2_16_2 ;
  x3do:name 'Selection' .
:fieldValue_2_16_1 a owl:NamedIndividual, x3do:fieldValue ;
  x3do:hasParent :ProtoInstance_2_16 ;
  x3do:name 'select' ;
  x3do:value false .
:fieldValue_2_16_2 a owl:NamedIndividual, x3do:fieldValue ;
  x3do:hasParent :ProtoInstance_2_16 ;
  x3do:hasChildren :TransInd ;
  x3do:name 'children' .
:TransInd a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :fieldValue_2_16_2 ;
  x3do:hasChildren :Transform_2_16_2_1_1 ;
  x3do:DEF 'TransInd' ;
  x3do:scale ( 3.5 3.0 3.0 ) .
:Transform_2_16_2_1_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :TransInd ;
  x3do:hasChildren :Shape_2_16_2_1_1_1, :Shape_2_16_2_1_1_2 ;
  x3do:scale ( 0.223 0.341 0.5 ) .
:Shape_2_16_2_1_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_16_2_1_1 ;
  x3do:hasAppearance :Appearance_2_16_2_1_1_1_1 ;
  x3do:hasGeometry :IndexedFaceSet_2_16_2_1_1_1_2 .
:Appearance_2_16_2_1_1_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_16_2_1_1_1 ;
  x3do:hasTexture :ImageTexture_2_16_2_1_1_1_1_1 .
:ImageTexture_2_16_2_1_1_1_1_1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_16_2_1_1_1_1 ;
  x3do:url '"Photo.jpg" "https://www.web3d.org/x3d/content/examples/Basic/Followers/Photo.jpg"' .
:IndexedFaceSet_2_16_2_1_1_1_2 a owl:NamedIndividual, x3do:IndexedFaceSet ;
  x3do:hasParent :Shape_2_16_2_1_1_1 ;
  x3do:hasTexCoord :SquareTextureCoordinatePoints ;
  x3do:hasCoord :Coordinate_2_16_2_1_1_1_2_2 ;
  x3do:coordIndex ( 0 1 2 3 -1 4 5 6 7 -1 4 0 3 7 -1 5 1 0 4 -1 6 2 1 5 -1 7 3 2 6 -1 ) ;
  x3do:solid false ;
  x3do:texCoordIndex ( 0 1 2 3 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 ) .
:SquareTextureCoordinatePoints a owl:NamedIndividual, x3do:TextureCoordinate ;
  x3do:hasParent :IndexedFaceSet_2_16_2_1_1_1_2 ;
  x3do:DEF 'SquareTextureCoordinatePoints' ;
  x3do:point ( 0 0 1 0 1 1 0 1 ) .
:Coordinate_2_16_2_1_1_1_2_2 a owl:NamedIndividual, x3do:Coordinate ;
  x3do:hasParent :IndexedFaceSet_2_16_2_1_1_1_2 ;
  x3do:point ( -1.0 -1.0 0.03 1.0 -1.0 0.03 1.0 1.0 0.03 -1.0 1.0 0.03 -1.0 -1.0 0.0 1.0 -1.0 0.0 1.0 1.0 0.0 -1.0 1.0 0.0 ) .
:Shape_2_16_2_1_1_2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_16_2_1_1 ;
  x3do:hasAppearance :Appearance_2_16_2_1_1_2_1 ;
  x3do:hasGeometry :IndexedFaceSet_2_16_2_1_1_2_2 .
:Appearance_2_16_2_1_1_2_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_16_2_1_1_2 ;
  x3do:hasTexture :ImageTexture_2_16_2_1_1_2_1_1 .
:ImageTexture_2_16_2_1_1_2_1_1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_16_2_1_1_2_1 ;
  x3do:url '"Shadow.png" "https://www.web3d.org/x3d/content/examples/Basic/Followers/Shadow.png"' .
:IndexedFaceSet_2_16_2_1_1_2_2 a owl:NamedIndividual, x3do:IndexedFaceSet ;
  x3do:hasParent :Shape_2_16_2_1_1_2 ;
  x3do:hasTexCoord :SquareTextureCoordinatePoints-USE-1 ;
  x3do:hasCoord :Coordinate_2_16_2_1_1_2_2_2 ;
  x3do:coordIndex ( 0 1 2 3 -1 ) .
:SquareTextureCoordinatePoints-USE-1 a owl:NamedIndividual, x3do:TextureCoordinate ;
  x3do:hasParent :IndexedFaceSet_2_16_2_1_1_2_2 ;
  owl:sameAs :SquareTextureCoordinatePoints . # DEF matching this USE
:Coordinate_2_16_2_1_1_2_2_2 a owl:NamedIndividual, x3do:Coordinate ;
  x3do:hasParent :IndexedFaceSet_2_16_2_1_1_2_2 ;
  x3do:point ( -1.15 -1.15 0.01 1.15 -1.15 0.01 1.15 1.15 0.01 -1.15 1.15 0.01 ) .
:Worker a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_17_1, :field_2_17_2, :field_2_17_3, :field_2_17_4, :field_2_17_5, :field_2_17_6, :field_2_17_7, :field_2_17_8, :field_2_17_9, :field_2_17_10, :field_2_17_11, :field_2_17_12, :field_2_17_13, :field_2_17_14, :field_2_17_15 ;
  x3do:DEF 'Worker' ;
  x3do:sourceCode """
ecmascript:

function set_hitPoint(hp)
{
    lastHitPoint= hp;
}

function touchedFloor(t)
{
    indPos= CheckGroundRoof(lastHitPoint);
    indOri= new SFRotation(-1, 0, 0, 1.571);
}

function touchedWallLeft(t)
{
    indPos= CheckLeftRightWall(CheckHeight(lastHitPoint));
    indOri= new SFRotation(0, 1, 0, 1.5705);
}

function touchedWallRight(t)
{
    indPos= CheckLeftRightWall(CheckHeight(lastHitPoint));
    indOri= new SFRotation(0, -1, 0, 1.5705);
}

function touchedWallFront(t)
{
    indPos= CheckFrontWall(CheckHeight(lastHitPoint));
    indOri= new SFRotation(0, 1, 0, 0);
}

function touchedRoof(t)
{
    indPos= CheckGroundRoof(lastHitPoint);
    indOri= (new SFRotation(1, 0, 0, 1.57));//.multiply(new SFRotation(0, 1, 0, 3.14159));
}

function CheckGroundRoof(pos)
{
return new SFVec3f( Limit(pos.x, -cRoomWidth/2 + cPaintingWidth/2, cRoomWidth/2 - cPaintingWidth/2)
                  , pos.y
                  , Limit(pos.z, -cRoomDepth/2 + cPaintingHeight/2, cRoomDepth/2 - cPaintingHeight/2)
                  );
}

function CheckHeight(pos)
{
    return new SFVec3f( pos.x
                  , Limit(pos.y, cFloorY + cPaintingHeight/2, cFloorY + cRoomHeight - cPaintingHeight/2)
                  , pos.z
                  );
}

function CheckLeftRightWall(pos)
{
    return new SFVec3f( pos.x
                      , pos.y
                      , Limit(pos.z, -cRoomDepth/2 + cPaintingWidth/2, cRoomDepth/2 - cPaintingWidth/2)
                      );
}

function CheckFrontWall(pos)
{
    return new SFVec3f( Limit(pos.x, -cRoomWidth/2 + cPaintingWidth/2, cRoomWidth/2 - cPaintingWidth/2)
                      , pos.y
                      , pos.z
                      );
}
function Limit(x, min, max)
{
    return Min(Max(x, min), max);
}

function Max(a, b)
{
    return a > b? a:b;
}

function Min(a, b)
{
    return a > b? b:a;
}
""" .
:field_2_17_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_hitPoint' ;
  x3do:type 'SFVec3f' .
:field_2_17_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'touchedWallLeft' ;
  x3do:type 'SFTime' .
:field_2_17_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'indPos' ;
  x3do:type 'SFVec3f' .
:field_2_17_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'touchedWallRight' ;
  x3do:type 'SFTime' .
:field_2_17_5 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'cRoomDepth' ;
  x3do:type 'SFFloat' ;
  x3do:value 9.9 .
:field_2_17_6 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'cPaintingWidth' ;
  x3do:type 'SFFloat' ;
  x3do:value 1.561 .
:field_2_17_7 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'cFloorY' ;
  x3do:type 'SFFloat' ;
  x3do:value 0.05 .
:field_2_17_8 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'cPaintingHeight' ;
  x3do:type 'SFFloat' ;
  x3do:value 2.046 .
:field_2_17_9 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'touchedWallFront' ;
  x3do:type 'SFTime' .
:field_2_17_10 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'touchedFloor' ;
  x3do:type 'SFTime' .
:field_2_17_11 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'touchedRoof' ;
  x3do:type 'SFTime' .
:field_2_17_12 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'indOri' ;
  x3do:type 'SFRotation' .
:field_2_17_13 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'cRoomHeight' ;
  x3do:type 'SFFloat' ;
  x3do:value 2.9 .
:field_2_17_14 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'cRoomWidth' ;
  x3do:type 'SFFloat' ;
  x3do:value 9.9 .
:field_2_17_15 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Worker ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'lastHitPoint' ;
  x3do:type 'SFVec3f' ;
  x3do:value ( 0.0 0.0 0.0 ) .
:ROUTE_2_18 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'hitPoint_changed' ;
  x3do:fromNode 'TouchFloor' ;
  x3do:toField 'set_hitPoint' ;
  x3do:toNode 'Worker' .
:ROUTE_2_19 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'hitPoint_changed' ;
  x3do:fromNode 'TouchWallLeft' ;
  x3do:toField 'set_hitPoint' ;
  x3do:toNode 'Worker' .
:ROUTE_2_20 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'hitPoint_changed' ;
  x3do:fromNode 'TouchWallRight' ;
  x3do:toField 'set_hitPoint' ;
  x3do:toNode 'Worker' .
:ROUTE_2_21 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'hitPoint_changed' ;
  x3do:fromNode 'TouchWallFront' ;
  x3do:toField 'set_hitPoint' ;
  x3do:toNode 'Worker' .
:ROUTE_2_22 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'hitPoint_changed' ;
  x3do:fromNode 'TouchRoof' ;
  x3do:toField 'set_hitPoint' ;
  x3do:toNode 'Worker' .
:ROUTE_2_23 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'TouchFloor' ;
  x3do:toField 'touchedFloor' ;
  x3do:toNode 'Worker' .
:ROUTE_2_24 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'TouchWallLeft' ;
  x3do:toField 'touchedWallLeft' ;
  x3do:toNode 'Worker' .
:ROUTE_2_25 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'TouchWallRight' ;
  x3do:toField 'touchedWallRight' ;
  x3do:toNode 'Worker' .
:ROUTE_2_26 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'TouchWallFront' ;
  x3do:toField 'touchedWallFront' ;
  x3do:toNode 'Worker' .
:ROUTE_2_27 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'TouchRoof' ;
  x3do:toField 'touchedRoof' ;
  x3do:toNode 'Worker' .
:PaintingPositionChaser a owl:NamedIndividual, x3do:PositionChaser ;
  x3do:hasParent :Scene ;
  x3do:DEF 'PaintingPositionChaser' .
:PaintingOrientationChaser a owl:NamedIndividual, x3do:OrientationChaser ;
  x3do:hasParent :Scene ;
  x3do:DEF 'PaintingOrientationChaser' .
:ROUTE_2_30 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'indPos' ;
  x3do:fromNode 'Worker' ;
  x3do:toField 'set_destination' ;
  x3do:toNode 'PaintingPositionChaser' .
:ROUTE_2_31 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'indOri' ;
  x3do:fromNode 'Worker' ;
  x3do:toField 'set_destination' ;
  x3do:toNode 'PaintingOrientationChaser' .
:ROUTE_2_32 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'PaintingPositionChaser' ;
  x3do:toField 'translation' ;
  x3do:toNode 'TransInd' .
:ROUTE_2_33 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'PaintingOrientationChaser' ;
  x3do:toField 'rotation' ;
  x3do:toNode 'TransInd' .
