Revision of Walkabout from Wed, 11/02/2016 - 19:27
}
Provides Viewpoint and Navigation for displays where the availableOrientationAngles field of the SpatialSensor node generates a TRUE value. Intended for navigation in an X3D world with a mobile device. This node forces the user into a WALK mode of motion where the device identified by SpatialSensor is used to determine walking speed, direction, turning, and/or look direction. The specifics are described below.
Fields taken from Viewpoint and NavigationInfo. All of those fields are as defined in those nodes.
In all modes of operation, it is assumed that the SpatialSensor is oriented such that the display (or display equivalent) is in portrait mode with the display in a verical direction.
This node allows the user to walk around on the surface with normal gravity by using the orientation that is generated by SpatialSensor. It can run in one of two modes: tank mode and non-tank mode. In normal mode (default) the viewer moves in the direction of horizontal looking and speed is constant. In tankMode, the user is allowed to look independently of direction of movement.
In normal mode (tankMode is FALSE) the SpatialSensor must look at nadir to switch between forward and stop. Tilting up or down allows the viewer to look up or down, respectively. There is no change to motion or position. When the viewer is moving, direction of travel is in the direction of horizontal looking.
In tank-mode, the orientation returned by SpatialSensor is handled differently. This mode allows the user to look in a different direction than moving. It is assumed that the normal orientation of SpatialSensor and the corresponding display is such that the display is in landscape mode perpendicular to the X-Z plane. This mode has the following controls
- Rotating the sensor about the Y-Axis produces different look directions.
- Tilting the sensor about the X-Axis changes the speed of movement.
- The intiial orientation is STOP
- Tilting it towards face-up increases speed
- Tilting it towards face-down decreases speed
- Any tilt more face-up is forward
- Any tilt more face-down is backwards
- Rotating the sensor about the Z-Axis turns the viewer's direction of motion (like a steering wheel). The look direction is maintained relative to the move direction.
- There is no way to look up or down in this mode.
This node does not require SpatialSensor to be declared or used in conjunction with Walkabout. All interactions are handled internally.