mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-13 03:28:46 +02:00
remove update stylus
This commit is contained in:
parent
3b05317db6
commit
1947f2ba99
1 changed files with 0 additions and 15 deletions
|
@ -152,20 +152,6 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.updateStylus = function() {
|
|
||||||
if (this.stylus) {
|
|
||||||
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 modelPositionOffset = Vec3.multiplyQbyV(modelOrientation, { x: 0, y: 0, z: MyAvatar.sensorToWorldScale * -WEB_STYLUS_LENGTH / 2 });
|
|
||||||
|
|
||||||
var stylusProps = {
|
|
||||||
position: Vec3.sum(this.stylusTip.position, modelPositionOffset),
|
|
||||||
rotation: modelOrientation
|
|
||||||
};
|
|
||||||
Overlays.editOverlay(this.stylus, stylusProps);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
this.showStylus = function() {
|
this.showStylus = function() {
|
||||||
if (this.stylus) {
|
if (this.stylus) {
|
||||||
return;
|
return;
|
||||||
|
@ -334,7 +320,6 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
if (this.isNearStylusTarget) {
|
if (this.isNearStylusTarget) {
|
||||||
if (!this.useFingerInsteadOfStylus) {
|
if (!this.useFingerInsteadOfStylus) {
|
||||||
this.showStylus();
|
this.showStylus();
|
||||||
this.updateStylus();
|
|
||||||
} else {
|
} else {
|
||||||
this.pointFinger(true);
|
this.pointFinger(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue