WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-03-2013, 03:37 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 10:39 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC