View Single Post
Old 06-04-2014, 09:35 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,470
1. Make sure you reset the inertial labs tracker. You'll need to call the resetHeading function as in demo script.

2. You've linked the viewpoint to a tracker that has an initial height value of 0. The position of the link source (keytracker) will override the position you specify in the view.setPosition or viz.eyeheight commands. You can apply an offset to the link so it's initial value is not at ground level:

You can also force the viewpoint to stay at a certain height. In the following code only the X,Z position of the keytracker is be applied to the link. The height is fixed at 1.8:

Reply With Quote