|
Hi there
I've been trying to change the default
MouseTranslate behaviour to work in the XZ plane. In the source code for
the method doProcess(MouseEvent) there are the following lines:
x =
evt.getX();
y = evt.getY(); translation.x =
dx*x_factor;
translation.y = -dy*y_factor; (*) transformX.set(translation); In overriding it, I changed * to
translation.z =
-dy*y_factor;
But this didn't change anything, the object still
gets translated in the XY plane only. Am I going about this the wrong
way? It seems certain to me that this is the place where the transform is
set according to the mouse movement, is there another place?
Thanks
Rory
|
- Re: [JAVA3D] Different directions in MouseTranslate Rory Douglas
- Re: [JAVA3D] Different directions in MouseTranslate Jochen Vandewalle
