Hello again,

Thanks for your answers. Here is a picture that explains what I try to
do:

http://www.funky-monkey.ch/temp/dragging.png


Yes, the MouseEvent3d gives me what I want - however I have a
DragEvent and not a MouseEvent3d. Fortunately, I found how to get it:

var e:MouseEvent3D = view.getMouseEvent(MouseEvent3D.MOUSE_DOWN);

Then I get my coordinates as follows:

infra.x = Math.round(e.sceneX);
infra.z = Math.round(e.sceneZ);

This works, however, this coords do not always correspond to the
correct mouse position. There is some kind of offset, which -
strangely - depends on the drag speed: If I drag the object quickly,
it gets located correctly, under the mouse pointer. On the other hand,
if I drag slowly, it gets misplaced with an offset, also not always
the same.

I suppose this has to do with some mouse handlers not updating the
mouse position accurately...

What do you think?

Reply via email to