Mouse has been superseded by UserInputService and ContextActionService, which cover a broader scope, are more feature rich, and support cross-platform patterns better. It remains supported because of its widespread use, but you should strongly consider using these alternatives. Called when a pinch-to-zoom mouse-gesture is used. ... Returns the mouse's current position, relative to this component. ... Called to render your openGL. See also
* Interaction: moving the mouse while pressing the mouse button * will copy the image in the lower-left corner of the window * to the mouse position, using the current pixel zoom factors. * There is no attempt to prevent you from drawing over the original * image. If you press the 'r' key, the original image and zoom * factors are reset.
May 22, 2008 · I echo what h3ro said. To really understand why it is this way, you need to take to learn linear algebra and then study matrix transformations in computer graphics. But the jist of it is: translate the object to the origin, rotate it, translate it back to its original position.