WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-02-2009, 05:11 AM
Boombay Boombay is offline
Member
 
Join Date: Apr 2009
Posts: 1
simple question?

hello everyone,

somebody knows a function, from which i can calculate a direction vector out of a given point (anywhere in the world coordination system) + a given euler angle from a tracker?

my code looks like this:

track = itracker.getEuler()
point = object.getPosition()
directionVector = ?

the direction Vector should be an arrow, pointing from the given Position in the direction of the tracker.

i have already searched about preEuler Matrix transformations, but i didnt get a working system.
Reply With Quote
  #2  
Old 07-06-2009, 10:51 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can get the forward vector of the tracker using the following code:
Code:
 directionVector = itracker.getMatrix().getForward()
If you want to get the value directly from an euler angle, then you can use the following code:
Code:
directionVector = viz.Matrix.euler(eulerAngles).getForward()
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
Simple Head Tracker PHart Vizard 1 05-10-2009 05:35 PM
Kinda simple but I can't find out how... TrashcanPatrol Vizard 1 01-08-2009 11:53 PM
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 10:15 AM
Newbie Question: World Not Appearing jesuisme Vizard 2 01-08-2006 12:15 PM
Basic Joystick Navigation Question Plasma Vizard 2 01-29-2004 07:08 PM


All times are GMT -7. The time now is 05:07 AM.


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