From 806c3d8cdeea8439fb3ca3ba45d2396e03d3ac77 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Sat, 25 Jul 2009 15:46:01 -0800 Subject: [PATCH] Decrease Z gain while transforming an imported part with the six-DOF mouse. That's normal to the screen, so it's otherwise easy to get a big movement without realizing (especially with a parallel projection of the part). [git-p4: depot-paths = "//depot/solvespace/": change = 2021] --- draw.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/draw.cpp b/draw.cpp index ba8b930..19c7a85 100644 --- a/draw.cpp +++ b/draw.cpp @@ -291,10 +291,12 @@ void GraphicsWindow::SpaceNavigatorMoved(double tx, double ty, double tz, if(gs.entities == 1 && gs.n == 1) e = SK.GetEntity(gs.entity[0]); if(e) g = SK.GetGroup(e->group); if(g && g->type == Group::IMPORTED && !shiftDown) { - // Apply the transformation to an imported part. + // Apply the transformation to an imported part. Gain down the Z + // axis, since it's hard to see what you're doing on that one since + // it's normal to the screen. Vector t = projRight.ScaledBy(tx).Plus( projUp .ScaledBy(ty).Plus( - out .ScaledBy(tz))); + out .ScaledBy(0.1*tz))); Quaternion q = Quaternion::From(aa, aam); // If we go five seconds without SpaceNavigator input, or if we've