mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Update vive controller display to not hide on equip
This commit is contained in:
parent
9846614468
commit
af749605ea
1 changed files with 10 additions and 6 deletions
|
@ -16,6 +16,8 @@
|
|||
Script.include("controllerDisplay.js");
|
||||
Script.include("viveControllerConfiguration.js");
|
||||
|
||||
var HIDE_CONTROLLERS_ON_EQUIP = false;
|
||||
|
||||
//
|
||||
// Management of controller display
|
||||
//
|
||||
|
@ -116,12 +118,14 @@ ControllerDisplayManager = function() {
|
|||
}
|
||||
}
|
||||
} else if (channel === 'Hifi-Object-Manipulation') {
|
||||
data = JSON.parse(message);
|
||||
visible = data.action !== 'equip';
|
||||
if (data.joint === "LeftHand") {
|
||||
self.setLeftVisible(visible);
|
||||
} else if (data.joint === "RightHand") {
|
||||
self.setRightVisible(visible);
|
||||
if (HIDE_CONTROLLERS_ON_EQUIP) {
|
||||
data = JSON.parse(message);
|
||||
visible = data.action !== 'equip';
|
||||
if (data.joint === "LeftHand") {
|
||||
self.setLeftVisible(visible);
|
||||
} else if (data.joint === "RightHand") {
|
||||
self.setRightVisible(visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue