Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update():
- yaw = trackIR.yaw
- pitch = trackIR.pitch
- if (enabled):
- freeTrack.yaw = yaw
- freeTrack.pitch = pitch
- if starting:
- enabled = False
- trackIR.update += update
- toggle = keyboard.getPressed(Key.Z)
- if toggle:
- enabled = not enabled
- diagnostics.watch(freeTrack.yaw)
- diagnostics.watch(freeTrack.pitch)
Add Comment
Please, Sign In to add comment