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]
solver
Jonathan Westhues 2009-07-25 15:46:01 -08:00
parent 606af2ff39
commit 806c3d8cde
1 changed files with 4 additions and 2 deletions

View File

@ -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