long
?setTimerValue()
method.getMouseX()
and getMouseY()
methods to find out where the mouse cursor is on the screen. Then, use the appropriate SpaceState or Viewport's getSpacePoint()
method to find the corresponding point in the SpaceState's space.getSpacePoint()
method to find out where in the SpaceState's space the SpaceObject needs to be.