WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-19-2008, 09:58 AM
michaelrepucci michaelrepucci is offline
Member
 
Join Date: Jul 2008
Posts: 53
Can you link the position of a tracker to the orientation of an object?

I love the fact that you can link a sensor to an object, saving the pain and computational time of writing a callback on every frame that does the same thing. But how flexible is the link? I would like the the rotation of an object (specifically the yaw) to be linked to the position of a head-tracker (specifically the X-Z position relative to the object). Is there a simple way to do this, or do I need to use code like:
Code:
viz.callback(viz.UPDATE_EVENT,onUpdate)
def onUpdate(event):
   pos = tracker.getPosition()
   object.setEuler(someFunction(pos),0,0)
For that matter, would this be the best way to code this in Vizard, assuming there's no simple linking solution?
Reply With Quote
  #2  
Old 09-19-2008, 10:23 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The link objects support basic transformations on the incoming data. If you need to perform some custom calculation on the data then you have to manually do it per frame, as you have already done.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
retrieve Object names Geoffrey Vizard 11 12-11-2009 04:26 AM
Flock of Birds (Only Position Tracking working? No Orientation?) TheLostBrain Vizard 6 05-10-2008 08:39 AM
Getting object position in screen coordinates v-Salik Vizard 1 10-19-2007 03:41 PM
rotate to object jargon Vizard 1 08-08-2005 12:20 PM
Linking avatar 'bones' to a position tracker. zachhendershot Vizard 3 11-19-2003 09:26 PM


All times are GMT -7. The time now is 10:52 AM.


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