mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:49:34 +02:00
change way messages get sent to the hand disabler
This commit is contained in:
parent
8daeb0fa0d
commit
017ffb8f2e
1 changed files with 7 additions and 4 deletions
|
@ -158,7 +158,10 @@
|
||||||
this.isGrabbed = true;
|
this.isGrabbed = true;
|
||||||
|
|
||||||
this.initialHand = this.hand;
|
this.initialHand = this.hand;
|
||||||
Messages.sendMessage('Hifi-Beam-Disabler', this.initialHand);
|
|
||||||
|
//disable the opposite hand in handControllerGrab.js by message
|
||||||
|
var handToDisable = this.initialHand === 'right' ? 'left' : 'right';
|
||||||
|
Messages.sendMessage('Hifi-Hand-Disabler', handToDisable);
|
||||||
|
|
||||||
setEntityCustomData('grabbableKey', this.entityID, {
|
setEntityCustomData('grabbableKey', this.entityID, {
|
||||||
grabbable: false,
|
grabbable: false,
|
||||||
|
@ -439,11 +442,11 @@
|
||||||
//invert the hands because our string will be held with the opposite hand of the first one we pick up the bow with
|
//invert the hands because our string will be held with the opposite hand of the first one we pick up the bow with
|
||||||
var triggerLookup;
|
var triggerLookup;
|
||||||
if (this.initialHand === 'left') {
|
if (this.initialHand === 'left') {
|
||||||
triggerLookup=1;
|
triggerLookup = 1;
|
||||||
this.getStringHandPosition = MyAvatar.getRightPalmPosition;
|
this.getStringHandPosition = MyAvatar.getRightPalmPosition;
|
||||||
} else if (this.initialHand === 'right') {
|
} else if (this.initialHand === 'right') {
|
||||||
this.getStringHandPosition = MyAvatar.getLeftPalmPosition;
|
this.getStringHandPosition = MyAvatar.getLeftPalmPosition;
|
||||||
triggerLookup=0;
|
triggerLookup = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.triggerValue = Controller.getValue(TRIGGER_CONTROLS[triggerLookup]);
|
this.triggerValue = Controller.getValue(TRIGGER_CONTROLS[triggerLookup]);
|
||||||
|
|
Loading…
Reference in a new issue