View Single Post
  #2  
Old 04-30-2007, 10:30 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

This is because the text is always facing towards its local -Z axis. You need to apply a 180 degree rotation after the lookat command:
Code:
self.tpressure.lookat(self.view.getPosition())
self.tpressure.setEuler(180,0,0,viz.REL_LOCAL)
Also, instead of manually performing this code, you can use the billboard() command to have Vizard automatically do it for you.
Code:
text = viz.addText('hello')
text.billboard(viz.BILLBOARD_VIEW) #Have text always face the user
Reply With Quote