###### findme function by Cindy Reed Ballreich ###### # Insert the code fragment into your world and then fire up your world as normal. # Bring up the VRML console (in CosmoPlayer press "/"). Now as you move around in # the world, your current position and orientation are printed out in the console # (the position is expressed as 3 numbers, and the orientation is 4 numbers). # When you are happy with the viewpoint, copy it from the console into the # viewpoint node of your world. DEF FINDME ProximitySensor { center 0 0 0 size 1000 1000 1000 } DEF Printer Script { eventIn SFVec3f set_position eventIn SFRotation set_orientation url "javascript: function set_position(value, time) { print(value); } function set_orientation(value, time) { print(value); }" } ROUTE FINDME.position_changed TO Printer.set_position ROUTE FINDME.orientation_changed TO Printer.set_orientation