mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:57:58 +02:00
trigger changes and message debugging
This commit is contained in:
parent
2add609387
commit
50c1786e9b
2 changed files with 1 additions and 4 deletions
|
@ -1228,6 +1228,7 @@ function update() {
|
||||||
Messages.subscribe('Hifi-Beam-Disabler');
|
Messages.subscribe('Hifi-Beam-Disabler');
|
||||||
|
|
||||||
handleBeamDisablerMessages = function(channel, message, sender) {
|
handleBeamDisablerMessages = function(channel, message, sender) {
|
||||||
|
print('GOT MESSAGE:::'+message)
|
||||||
handToDisable = message;
|
handToDisable = message;
|
||||||
if (message === 'left') {
|
if (message === 'left') {
|
||||||
handToDisable = 1;
|
handToDisable = 1;
|
||||||
|
|
|
@ -441,17 +441,13 @@
|
||||||
if (this.initialHand === 'left') {
|
if (this.initialHand === 'left') {
|
||||||
triggerLookup=1;
|
triggerLookup=1;
|
||||||
this.getStringHandPosition = MyAvatar.getRightPalmPosition;
|
this.getStringHandPosition = MyAvatar.getRightPalmPosition;
|
||||||
// this.stringTriggerAction = Controller.findAction("RIGHT_HAND_CLICK");
|
|
||||||
} else if (this.initialHand === 'right') {
|
} else if (this.initialHand === 'right') {
|
||||||
this.getStringHandPosition = MyAvatar.getLeftPalmPosition;
|
this.getStringHandPosition = MyAvatar.getLeftPalmPosition;
|
||||||
triggerLookup=0;
|
triggerLookup=0;
|
||||||
// this.stringTriggerAction = Controller.findAction("LEFT_HAND_CLICK");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.triggerValue = Controller.getValue(TRIGGER_CONTROLS[triggerLookup]);
|
this.triggerValue = Controller.getValue(TRIGGER_CONTROLS[triggerLookup]);
|
||||||
|
|
||||||
// this.triggerValue = Controller.getActionValue(this.stringTriggerAction);
|
|
||||||
print('TRIGGER VALUE:::' + this.triggerValue);
|
|
||||||
|
|
||||||
if (this.triggerValue < DRAW_STRING_THRESHOLD && this.stringDrawn === true) {
|
if (this.triggerValue < DRAW_STRING_THRESHOLD && this.stringDrawn === true) {
|
||||||
// firing the arrow
|
// firing the arrow
|
||||||
|
|
Loading…
Reference in a new issue