Hi,
I am searching for a solution that allows dragging/moving/translate
objects *directly* with the mouse. Direct means, the objects moves
exactly with the cursor.
sun.j3d.utils.behaviors.mouse.MouseTranslate implements such a
behavior, but the object is just translated into the direction of the
mouse movement, with a constant factor. The higher the factor, the
higher the translation.
I could somehow calculate the factor so that the translation
synchronizes with the mouse cursor. I think this may only work with
parallel projection, but that would be fine for me. But I have no idea
how to determine the correct factor.
Another way would be an own implementation, but that goes a little far
beyond my knowledge.
I had to create a ray from the mouse cursor on the projection plane,
and calculate a transform so that the picked point of the current node
lies on that ray.
Sounds complicated for me... Can anyone give some hints?
Kind regards, Sebastian


|