Hi Paul,

         okay, i've got the transform and u suggest transforming the
vector(0,0,-1) to work out how this vector maps in 3D space. From the new
vector, I can find angle between the two vectors, and hence find the angle
of rotation about the y axis. Is this correct???. Is this the only way to
extract the rotation angle?? or is there a simpler method. I would just
like to find the angle of rotation in radians. by default the rotation
value is set at 0 (looking down the Z axis) and PI/2 is look looking
parallel to the X axis. I just need to find that theta value for rotation.


cheers,


Quoc.


At 08:51 AM 13/06/2001 +0200, you wrote:
>use the Viewplatform . getLocalToVworldTransform( ) method and transform
>e.g. the
>vector (0,0,-1) the you get a vector you are looking for in 3d space. Set
>Capability
>bits to read the above mentioned transformation.
>
>regards
>Paul
>
>Quoc Huynh schrieb:
>
> > Hi all,
> >
> >         I'm trying to retrieve a value from the viewing platform that
> will tell me
> > in which direction the viewing platform is looking. I have a viewing
> > platform moving through a terrain, the position of the viewing platform is
> > mapped to a 2D image of the terrain, updated with the translation component
> > of the viewing platform to show its position. Ideally i would like to have
> > an arrow on the 2D map showing, the direction of the field of view in the
> > current 3D terrain.
> >
> >         Does anyone know how to retrieve this information????
> >
> > cheers,
> >
> > Quoc.
> >
> > ===========================================================================
> > 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".
>
>===========================================================================
>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".

===========================================================================
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".

Reply via email to