![]() |
|
|||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||
|
|||
|
Yes, you can get the position and orientation of the tracker each frame and apply whichever parts of that you want:
Code:
import viz
import vizact
import vizcam
viz.go()
dojo = viz.addChild('dojo.osgb')
keyTracker = vizcam.addKeyboard6DOF()
def updateView():
pos = keyTracker.getPosition()
ori = keyTracker.getEuler()
viz.MainView.setPosition([pos[0],1.8,0])
viz.MainView.setEuler(ori)
vizact.onupdate(0,updateView)
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ** ERROR: Link failed (source linkable is invalid) | mhead10 | Vizard | 2 | 10-04-2012 01:18 PM |
| multiplication on link position matrix | Chapre | Vizard | 2 | 07-08-2011 01:55 AM |
| Can you link the position of a tracker to the orientation of an object? | michaelrepucci | Vizard | 1 | 09-19-2008 10:23 AM |