![]() |
#2
|
|||
|
|||
It sounds like you maybe looking for the yaw component of the euler angle. The following example shows the yaw, pitch, and roll values every frame:
Code:
import viz import vizact import vizinfo viz.go() info = vizinfo.InfoPanel('Head Ori Data') yaw = info.addLabelItem('yaw',viz.addText('')) pitch = info.addLabelItem('pitch',viz.addText('')) roll = info.addLabelItem('roll',viz.addText('')) viz.add('dojo.osgb') def updateInfo(): ori = viz.MainView.getEuler() yaw.message('{:.2f}'.format(ori[0])) pitch.message('{:.2f}'.format(ori[1])) roll.message('{:.2f}'.format(ori[2])) vizact.onupdate(0,updateInfo) Last edited by Jeff; 10-31-2016 at 11:43 AM. |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regarding Viconnect viewpoint | rajnishv | Precision Position Tracker (PPT) | 3 | 03-20-2017 11:03 PM |
Regarding viewpoint with vizconfig,addFloatRangeItem&Storing viewpoint in PREFERENCES | rajnishv | Vizard | 0 | 06-27-2016 03:57 AM |
Draw Vector in viewpoint lookat direction | Chrissy2009 | Vizard | 2 | 05-30-2009 12:50 AM |
VRML Viewpoint error | bstankie | Vizard | 1 | 03-11-2003 02:10 PM |