Rob,

I must be doing something wrong. At least with sceneX,Y,Z I get a
correct coordinate returned up until I rotate the scene.

With screenX,Y,Z it is way way way off no matter if I rotate the scene
or not. What is the best method to find the correct X,Y,Z point on the
object where I clicked? I was using the "position" of the object for
my task I need to very point on the object I clicked on.

SceneX,Y,Z work perfectly until I rotate the scene. ScreenX,Y,Z don't
seem to have any correct value... again I'm sure I'm doing somthing
way wrong.

Do I need to simply manually apply the rotation matrix to the
SceneX,Y,Z returned by mouse event?

Tony

On Oct 26, 5:49 pm, mogg <[EMAIL PROTECTED]> wrote:
> Rob,
>
> Thank you. I did not realize that. I will change which properties I
> use.
>
> Tony
>
> On Oct 26, 5:19 pm, "Rob Bateman" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hey Mogg
>
> > this is true, however, i would say this is the expected behaviour of
> > properties with names like sceneX, sceneY and sceneZ. They represent the
> > position within a scene. If you need to take account of camera position
> > (including the rotation of the scene), you can always use the sceenX,
> > screenY and screenZ properties. Rotating a scene is like performing a global
> > transformation on all the views that use it.
>
> > Rob
>
> > On Sat, Oct 25, 2008 at 10:25 PM, mogg <[EMAIL PROTECTED]> wrote:
>
> > > Dear Away3D team,
>
> > > MouseEvent3D event properties event.sceneX, event.sceneY, and
> > > event.sceneZ do not take in account for scene rotation translations
> > > like:
>
> > > view.scene.rotationX
> > > view.scene.rotationY
> > > or
> > > view.scene.rotationZ
>
> > > The MouseEvent3D event always returns assuming that the scene has
> > > never been rotated.
>
> > > Tony
>
> > --
> > Rob Bateman
> > Flash Development & Consultancy
>
> > [EMAIL PROTECTED] quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to