View Single Post
  #4  
Old 10-04-2011, 03:01 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Within a function that gets called every frame you can get the tracker data as lists and extract the values you want to use. Something like the following:
Code:
def updateAvatar():
	pos=tracker.getPosition()
	ori=tracker.getEuler()
	avatar.setPosition([pos[0],0,pos[2]])
	avatar.setEuler([ori[0],0,0])
	
vizact.onupdate(0,updateAvatar)
Reply With Quote