is very simple, @Ptiflodu85
Now that you can see the mouse value, you have to identify the value of the motion.
as you can see from the print , the tick event run at 60-100 time for seconds
and he print all the positions 100,100, 102,100, 105,100…
what you want to do is understand of how much it change for every tick.
So when you start the movement, Maybe with the rightmousebutton
you create a variable to store the mouse position in that moment. “MouseStartPos”
Now in the tick event, you can understand of how much you moved by subtracting the new position to the old position of the mouse.
if was 100,100, and now is 120,80…
in this tick you moved of +20 x, -20y
if you did not move the mouse for some tick, the numbers wil be the same and the result is 0
so no rotation when you dont move.
Now you can apply the rotation with the make rotation from axis, using the camera and using this value X for rotate the base on z , and the value of y, to rotate the base on the other axis.
Do not forget that before the tick ends,
you must record the new mouse position as the “StartMousePos”
So the next tick will take on from there,