View Single Post
  #2  
Old 03-09-2011, 09:40 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If your sensor contains both position and rotation data, then you need to apply a preTrans operator on the link to apply the offset between the physical sensor and actual eye position.

Example:
Code:
view_link = viz.link(sensor,viz.MainView)

# Physical sensor is 0.05 m above and 0.02 m behind actual eye position
view_link.preTrans([0.0,-0.05,0.02])
Reply With Quote