|
|
VRML Script Tutorial
Full list
VRML Interactive Tutorial
Introduction
VRML File Structure
Drawing: Shape node
Geometry Nodes:
Appearance
Let there be Light
Materials with Colored Lights
Hierarchical Node Structures
Inlining Files
Defining and Instancing Nodes
Defining Levels of Detail
Events in VRML
Interpolators
Let the Music Play
Bindable Nodes
Adding Realism to the world
Information about your world
Definition for Auxiliary Nodes
|
|
|
|
NavigationInfo Node
The NavigationInfo node described the user and specifies the navigation
model. This is a bindable node.
The following fields are present in this node:
avatarSize specifies the physical dimensions of the user. These
dimensions are used for collision detection purposes as well as terrain
following. This field takes a list of three values. The first value
specifies the minimum distance that the user can be from any collidable
geometry, see the Collision node.
The second value determines the height of the user, i.e. if using a terrain
following option provided in some browsers the user will be maintained
at the specified height. The third value determines the maximum height
that the user can step over, think of a staircase for instance, the value
should be higher than the height of a single step.
headlight is a boolean field which determines if the headlight
is turned on or off, see Lighting.
visibilityLimit determines the maximum distance at which the
user can see, the default value of 0.0 indicates that this distance is
infinite. Note that regardless of the distance set you'll still see the
background.
speed indicates the velocity at which the user moves in meters
per second, well ideally at least.
type defines the type of navigation for the user. Possible values
are "WALK", "EXAMINE", "FLY", and "NONE".
Some browsers may provide more navigation modes but these four are the
'official' ones.
In addition to the events defined explicitly by the exposed
fields (in bold) this node supports the events common to all bindable
nodes.
Syntax:
|
NavigationInfo { |
avatarSize [0.25, 1.6, 0.75]
headlight TRUE
speed 1.0
type "WALK"
visibilityLimit 0.0
|
} |
|
In the example provided the user is placed at a height of 1.6 meters from
the ground. The first step has a height of 0.25 meters and the last two
steps have a height of half a meter.
|