Thank you David. If it's as you say, I think I can use Node.getBounds upon
insertion to find the initial coordinates. From that I can make a vector3D
and store it aside. Then I can use the transform itself to see how much
the object has been translated. Put that translation factor in a vector3D.
Then a vector addition should give me the correct coordinates!
That was all I needed to add my final little feature in my project. I knew
there must exist a way to do it. I had thought of the transform3D for the
translation vector but just didn't know how to get the initial coordinates!
Thank you very much guys!
Paris
--- David <[EMAIL PROTECTED]> wrote:
> You can get the bounds of any node with Node.getBounds(). I know this
> works
> as a way to calculate an adjustment prior to inserting it into the
> scenegraph. What I am not sure about is whether getBounds() returns a
> transform adjusted bounds once it is in a scenegraph undergoing
> transformations. Would be easy enough to experiment with.
>
> Dave Yazel
>
> ----- Original Message -----
> From: Paraskevas Orfanides <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 18, 2001 11:50 PM
> Subject: Re: [JAVA3D] Checking for movement
>
>
> If the shape wasn't build in the origin, is there a way to find these
> coordinates? (i.e. find the coordinates where it was constructed so that
> the translation vector can get added to that?)
> Thanks in advance,
> Paris
>
> --- "Yazel, David J." <[EMAIL PROTECTED]> wrote:
> > To get the distance to the view:
> >
> > 1. Get the transform which is translating the object and get the
> > translation
> > vector. This only works if the shape itself is built around the origin
> > and
> > then translated, as most are.
> > 2. get the view transform, gets its translation vector.
> > 3. calculate the distance between the two. You can use vector math or
> > convert them to points and use the distance() method.
> >
> > Dave Yazel
> >
> > > ----------
> > > From: Zak[SMTP:[EMAIL PROTECTED]]
> > > Reply To: Discussion list for Java 3D API
> > > Sent: Thursday, January 18, 2001 3:50 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [JAVA3D] Checking for movement
> > >
> > > I am using the Muse Behavoirs to manipulate the object. I need to get
> > the
> > > positon the object is at and the distance from the View...
> > >
> > > Zak
> > > ----- Original Message -----
> > > From: "Yazel, David J." <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, January 18, 2001 2:41 PM
> > > Subject: Re: [JAVA3D] Checking for movement
> > >
> > >
> > > > Is the object moving through a behavior? Objects don't move by
> > > themselves.
> > > > The same behavior that moves the object of course "knows" its being
> > > moved.
> > > > The location relative to the screen could mean several things. Do
> > you
> > > mean
> > > > in relation to the view? Do you need the distance from the view to
> > the
> > > > object? Or do you mean you want the mapping of the 3d object
> > > coordinates
> > > to
> > > > the 2d image plate coordinates?
> > > >
> > > > Dave Yazel
> > > >
> > > > > ----------
> > > > > From: Zak[SMTP:[EMAIL PROTECTED]]
> > > > > Reply To: Discussion list for Java 3D API
> > > > > Sent: Thursday, January 18, 2001 2:46 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [JAVA3D] Checking for movement
> > > > >
> > > > > I am trying to set up a routine that will check for movement of
> an
> > > object.
> > > > > I want to be able to tell the location(coordinates of an object)
> > > relative
> > > > > to the screen.
> > > > >
> > > > > How can I make it check all the time for changes in the object?
> > > > >
> > > > > Zak
> > > > >
> > > >
> > > >
> > >
> >
>
==========================================================================
> > > =
> > > > 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".
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
>
===========================================================================
> 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".
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
===========================================================================
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".