mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
Remove sound on stylus show and hide
This commit is contained in:
parent
b965049651
commit
da734b628c
1 changed files with 0 additions and 3 deletions
|
@ -157,8 +157,6 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tabletInterface.playSound(3);//HandsIn
|
|
||||||
|
|
||||||
var X_ROT_NEG_90 = { x: -0.70710678, y: 0, z: 0, w: 0.70710678 };
|
var X_ROT_NEG_90 = { x: -0.70710678, y: 0, z: 0, w: 0.70710678 };
|
||||||
var modelOrientation = Quat.multiply(this.stylusTip.orientation, X_ROT_NEG_90);
|
var modelOrientation = Quat.multiply(this.stylusTip.orientation, X_ROT_NEG_90);
|
||||||
var modelPositionOffset = Vec3.multiplyQbyV(modelOrientation, { x: 0, y: 0, z: MyAvatar.sensorToWorldScale * -WEB_STYLUS_LENGTH / 2 });
|
var modelPositionOffset = Vec3.multiplyQbyV(modelOrientation, { x: 0, y: 0, z: MyAvatar.sensorToWorldScale * -WEB_STYLUS_LENGTH / 2 });
|
||||||
|
@ -186,7 +184,6 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
if (!this.stylus) {
|
if (!this.stylus) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
tabletInterface.playSound(4);//HandsOut
|
|
||||||
Overlays.deleteOverlay(this.stylus);
|
Overlays.deleteOverlay(this.stylus);
|
||||||
this.stylus = null;
|
this.stylus = null;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue