Build a vector with a length equal to the distance from the avatar you wish
to put the item.  So something like (0,0,2).  Then apply the avatar's
rotation and translation to the vector.  The end point of the vector after
translation is the location to insert the object.

Dave Yazel

-----Original Message-----
From: Tina Manoharan Valappil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 9:19 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] inserting object in front of Avatar!


        Hello,

        I am providing both keyboard and mouse navigation options
        for my user avatar movement. In my program I would like to
        dynamically insert an object in the scene. But I would like
        to insert it first at some point in front of the avatar
        (wherever it is, whatever direction it is looking at).
        No matter what logic I use, I am not able to do it in front
        of the avatar, it is inserting the object somewhere else.
        Can somebody please give me some tips on how I can do this.

        Thanks
        Tina

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