diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-07-07 21:03:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-07-07 21:03:31 +0400 |
commit | ace48877ea8ab8f24e7e10bae45050cbbe2773bc (patch) | |
tree | e52224a04fc0250f2916b598aa23795e3f6a2d58 /source/blender/src/editview.c | |
parent | db5860df0c4e776a5f7cbee4449de49697d09e66 (diff) |
doubled the speed of mouse rotation, halved the mousewheel speed and WASDRF dont accelerate anymore.
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r-- | source/blender/src/editview.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c index 2b89b720c1d..be48adc1170 100644 --- a/source/blender/src/editview.c +++ b/source/blender/src/editview.c @@ -2132,19 +2132,15 @@ void fly(void) } else if(toets==AKEY) { if (speed<0) speed=-speed; - else speed+= G.vd->grid; axis= 0; } else if(toets==DKEY) { if (speed>0) speed=-speed; - else speed-= G.vd->grid; axis= 0; } else if(toets==FKEY) { if (speed<0) speed=-speed; - else speed+= G.vd->grid; axis= 1; } else if(toets==RKEY) { if (speed>0) speed=-speed; - else speed-= G.vd->grid; axis= 1; /* axis locking */ @@ -2223,7 +2219,7 @@ void fly(void) upvec[1]=0; upvec[2]=0; Mat3MulVecfl(mat, upvec); - VecRotToQuat( upvec, (float)moffset[1]*-time_redraw*10, tmp_quat); /* Rotate about the relative up vec */ + VecRotToQuat( upvec, (float)moffset[1]*-time_redraw*20, tmp_quat); /* Rotate about the relative up vec */ QuatMul(G.vd->viewquat, G.vd->viewquat, tmp_quat); } @@ -2233,7 +2229,7 @@ void fly(void) upvec[1]=1; upvec[2]=0; Mat3MulVecfl(mat, upvec); - VecRotToQuat( upvec, (float)moffset[0]*time_redraw*10, tmp_quat); /* Rotate about the relative up vec */ + VecRotToQuat( upvec, (float)moffset[0]*time_redraw*20, tmp_quat); /* Rotate about the relative up vec */ QuatMul(G.vd->viewquat, G.vd->viewquat, tmp_quat); } @@ -2288,7 +2284,7 @@ void fly(void) if (apply_rotation) - VecMulf(dvec, speed*time_redraw); + VecMulf(dvec, speed*time_redraw*0.5); VecAddf(G.vd->ofs, G.vd->ofs, dvec); headerprint("FlyKeys Speed:(+/- | Wheel), MouseLook:Alt, Upright Axis:X/Z, Slow:Shift, Direction:WASDRF, Ok:LMB, Cancel:RMB"); |