Game Development Community

More precise item manipulation with mouse

by Jacob · in Torque Game Engine · 01/11/2005 (11:23 am) · 5 replies

Is there a way to increase the precision of the mouse movement when manipulating objects in the mission editor?

#1
01/11/2005 (2:15 pm)
Found it! World editor settings.
#2
01/12/2005 (5:46 am)
There is a thread around that allows further precision by allowing the shift key to activate a movement of some fraction of normal. A search eludes me atm.
#3
01/12/2005 (7:27 pm)
That would be nice...I may have a look sometime!
#4
01/13/2005 (4:58 am)
In WorldEditor.cc for function on3DMouseDragged() insert after existing code:

current:
if( mAxisGizmoSelAxis != 2 ) {
   offset = ( event.mousePoint.x - mHitMousePos.x ) * mMouseMoveScale;

becomes:
if( mAxisGizmoSelAxis != 2 ) {
   offset = ( event.mousePoint.x - mHitMousePos.x ) * mMouseMoveScale;
   offset *= ((event.modifier & SI_SHIFT)?0.25f:((event.modifier & SI_ALT)?0.05:1.0f));


current:
else
     offset = ( event.mousePoint.y - mHitMousePos.y ) * mMouseMoveScale * -1;

becomes:
else {
    offset = ( event.mousePoint.y - mHitMousePos.y ) * mMouseMoveScale * -1;
    offset *= ((event.modifier & SI_SHIFT)?0.25f:((event.modifier & SI_ALT)?0.05:1.0f));
			}

This allows the SHIFT key to move selected stuff in the WorldEditor at .25 and ALT at .05. Couldn't find the original post so here you go.
#5
01/14/2005 (10:00 am)
Sure appreciate it - thanks!