Members
-
values
-
Methods
-
vcs.vcm.NavigationMode.getInstance(){vcs.vcm.NavigationMode}
-
Singleton getter for this class.
-
activateFirstPersonMode(optViewpoint, optDuration, optMaximumHeight, optAllowHeightChanges, optUseAbsoluteHeight)
-
Name Type Description optViewpointvcs.vcm.util.ViewPoint optDurationnumber Duration of the animation in secs
optMaximumHeightnumber Maximum height during animation (can be used to get rid of the bunny hop)
optAllowHeightChangesboolean optUseAbsoluteHeightboolean no TerrainCorrection
-
activateOverviewMode(optViewpoint, optDuration, optMaximumHeight)
-
Name Type Description optViewpointvcs.vcm.util.ViewPoint optDurationnumber Duration of the animation in secs
optMaximumHeightnumber Maximum height during animation (can be used to get rid of the bunny hop)
-
setFlags(setTheseFlags)
-
Programmatically set the flags which control the firstPerson mode
Name Type Description setTheseFlagsObject.<string, boolean> - TODO
-
- write reasonabel getters and setters for flags
-
setHeading(heading)
-
sets a new Heading
Name Type Description headingnumber - Deprecated
- Yes
-
setOptions(options)
-
Name Type Description optionsvcs.vcm.NavigationMode.Options optional options, if the class has already been gotten they have no effect
-
setValues(values)
-
sets new Values {'referenceHeight':1.6}
Name Type Description valuesvcs.vcm.NavigationMode.Values
Type Definitions
-
vcs.vcm.NavigationMode.Options{Object}
-
Properties:
Name Type Description referenceHeightnumber | undefined moveFactornumber | undefined -
vcs.vcm.NavigationMode.possibleFlags{Object}
-
Properties:
Name Type Description lookingboolean moveForwardboolean moveBackwardboolean moveUpboolean moveDownboolean moveLeftboolean moveRightboolean increaseFOVboolean decreaseFOVboolean rotationboolean tiltUpboolean tiltDownboolean rotateEastboolean rotateWestboolean -
vcs.vcm.NavigationMode.Values{Object}
-
Properties:
Name Type Description referenceHeightnumber activeboolean walkmodeboolean
virtualcityMAP 3.6