mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
removed debug spam from makeUserConnection, to reactivate it set Settings.setValue('MAKE_USER_CONNECTION_DEBUG', true);
and reload the script
This commit is contained in:
parent
4a95023a2d
commit
60a566768a
1 changed files with 5 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
|
||||
var request = Script.require('request').request;
|
||||
|
||||
var WANT_DEBUG = Settings.getValue('MAKE_USER_CONNECTION_DEBUG', false);
|
||||
var LABEL = "makeUserConnection";
|
||||
var MAX_AVATAR_DISTANCE = 0.2; // m
|
||||
var GRIP_MIN = 0.75; // goes from 0-1, so 75% pressed is pressed
|
||||
|
@ -120,6 +121,9 @@
|
|||
var successfulHandshakeSound;
|
||||
|
||||
function debug() {
|
||||
if (!WANT_DEBUG) {
|
||||
return;
|
||||
}
|
||||
var stateString = "<" + STATE_STRINGS[state] + ">";
|
||||
var connecting = "[" + connectingId + "/" + connectingHandJointIndex + "]";
|
||||
var current = "[" + currentHand + "/" + currentHandJointIndex + "]"
|
||||
|
@ -372,7 +376,7 @@
|
|||
var myHeadIndex = MyAvatar.getJointIndex("Head");
|
||||
var otherHeadIndex = avatar.getJointIndex("Head");
|
||||
var diff = (avatar.getJointPosition(otherHeadIndex).y - MyAvatar.getJointPosition(myHeadIndex).y) / 2;
|
||||
print("head height difference: " + diff);
|
||||
debug("head height difference: " + diff);
|
||||
updateAnimationData(diff);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue