08-18-2014 11:45 AM
def update():
global yaw
yaw = -android[0].pitch * multiplier
global pitch
pitch = -android[0].roll * multiplier
global roll
roll = -android[0].yaw * multiplier
if starting:
multiplier = 0.3
centerYaw = 0
centerPitch = 0
centerRoll = 0
yaw = 0
pitch = 0
roll = 0
android[0].update += update
freeTrack.yaw = yaw - centerYaw
freeTrack.pitch = pitch - centerPitch
freeTrack.roll = roll - centerRoll
if keyboard.getKeyDown(Key.LeftControl) and keyboard.getPressed(Key.C):
centerYaw = yaw
centerPitch = pitch
centerRoll = roll
08-19-2014 03:35 PM
08-20-2014 02:28 PM
08-20-2014 05:43 PM
"doodlepip" wrote:
Well I tried hacking this together for half life 2 (had to modify your script a bit) and it is VERY laggy. Guess my Wi-Fi is not fast enough but definitely not getting anywhere near 30ms and this is at 720p not 1080p 😛
08-21-2014 10:43 AM
08-26-2014 11:59 PM
08-29-2014 09:03 AM