View Single Post
  #4  
Old 06-04-2014, 09:35 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
1. Make sure you reset the inertial labs tracker. You'll need to call the resetHeading function as in ThePit.py 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:

Code:
headlink.postTrans([0,1.8,0])
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:

Code:
headlink.setPos([None,1.8,None])
Reply With Quote