![]() |
#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. |
#2
|
|||
|
|||
You can get the forward vector of the tracker using the following code:
Code:
directionVector = itracker.getMatrix().getForward() Code:
directionVector = viz.Matrix.euler(eulerAngles).getForward() |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
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 |