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