overte/scripts/developer/hmdRollControlEnable.js

22 lines
678 B
JavaScript
Raw Permalink Normal View History

2017-06-14 11:55:04 +12:00
//
// hmdRollControlEnable.js
//
// Created by David Rowe on 4 Jun 2017.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
var hmdRollControlEnabled = true;
var hmdRollControlDeadZone = 8.0; // deg
2017-06-15 09:20:55 +12:00
var hmdRollControlRate = 2.5; // deg/sec/deg
2017-06-14 11:55:04 +12:00
2017-06-15 09:20:55 +12:00
//print("HMD roll control: " + hmdRollControlEnabled + ", " + hmdRollControlDeadZone + ", " + hmdRollControlRate);
2017-06-14 11:55:04 +12:00
MyAvatar.hmdRollControlEnabled = hmdRollControlEnabled;
MyAvatar.hmdRollControlDeadZone = hmdRollControlDeadZone;
2017-06-15 09:20:55 +12:00
MyAvatar.hmdRollControlRate = hmdRollControlRate;
2017-06-14 11:55:04 +12:00
Script.stop();