Next: ui-panel, Previous: ui-html-browser, Up: GCL Reference
(ui-motion {inertia|constrain|own-coordinates} {on|off})
inertia
inertia
is off, objects cease to move as soon as you release the
mouse.
constrain
(ui-motion constrain on)
changes the interpretation of mouse
motions to allow this; approximately-horizontal or
approximately-vertical mouse dragging becomes exactly horizontal or
vertical motion. Note that the motion is still along the X or Y axes of
the camera in which you move the mouse, not necessarily the object's own
coordinate system.
own-coordinates
(ui-motion own-coordinates on)
has been
called, all motions are interpreted that way: dragging the mouse
rightward in translate mode moves the object in its own +X
direction, and so on. May be especially useful in conjunction with the
(ui-motion constrain on)
command.