Hi,
I'm writing an application where the user can walk throw the scene using KeyNavigatorBehavior. I need to know the viewer position and the direction he is looking at. I've been trying to use bgrp.getLocalToVworld(tmatrix) (where bgrp is my BranchGroup object) to get the Transform3D (tmatrix) object. I wrote these two functions to get viewer's position and viewing direction without success:
Hi, what you are doing look right, maybe you are doing it on the wrong branchGroup. The camera TG is the one you get, if using simple universe, with
u.getViewingPlatform().getViewPlatformTransform();
the node you ask localToVW to should be below this.
Bye
Lorenzo
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
