View Single Post
  #6  
Old 08-30-2016, 12:08 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
In a vizconnect application, view updates are based on the transforms of parent nodes (e.g. trackers, transports) in the scenegraph. Commands that set the view or link the view to another object get overwritten. You can use a vizconnect viewpoint object to help set the view. This forces the view to a location while taking into account the parent hierarchy. Moving the user to a general location within the environment can be accomplished by setting the position of a parent transport’s node3D object. In this case, the view position is equal to the transport position plus offsets from other parent nodes:

Code:
transportNode = vizconnect.getTransport('main_transport').getNode3d()
transportNode.setPosition([0,0,20])
Reply With Quote