mirror of
https://github.com/overte-org/overte.git
synced 2025-06-15 15:19:27 +02:00
fix vive bug
This commit is contained in:
parent
104ee63a77
commit
b2e407a8e1
1 changed files with 15 additions and 11 deletions
|
@ -125,19 +125,23 @@ function Teleporter() {
|
|||
|
||||
this.update = function() {
|
||||
//print('in teleporter update')
|
||||
if (rightPad.buttonValue === 0 || leftPad.buttonValue === 0) {
|
||||
print('JBP THUMB RELEASED SHOULD EXIT')
|
||||
_this.exitTeleportMode();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (teleporter.teleportHand === 'left') {
|
||||
teleporter.leftRay();
|
||||
if (leftPad.buttonValue === 0) {
|
||||
_this.exitTeleportMode();
|
||||
return;
|
||||
}
|
||||
if (leftTrigger.buttonValue === 0) {
|
||||
_this.teleport();
|
||||
}
|
||||
} else {
|
||||
teleporter.rightRay();
|
||||
if (rightPad.buttonValue === 0) {
|
||||
_this.exitTeleportMode();
|
||||
return;
|
||||
}
|
||||
if (rightTrigger.buttonValue === 0) {
|
||||
_this.teleport();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue