Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WindowPos = viz.window.getPosition()
- WindowSize = viz.window.getSize()
- Center = [WindowPos[0] + WindowSize[0]/2, WindowPos[1] + WindowSize[1]/2]
- deltaMouse = [ MOUSE_SENSATIVITY * (win32api.GetCursorPos()[0] - Center[0]), MOUSE_SENSATIVITY * (win32api.GetCursorPos()[1] - Center[1]) ]
- navigationNode.setEuler(yaw + deltaMouse[0], pitch + deltaMouse[1], 0)
- win32api.SetCursorPos(Center)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement