mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 20:29:10 +02:00
Adjust erase box position
This commit is contained in:
parent
8e21999e44
commit
caacbcbe78
2 changed files with 5 additions and 2 deletions
|
@ -58,6 +58,7 @@
|
|||
this.getHandRotation = MyAvatar.getLeftPalmRotation;
|
||||
this.triggerAction = Controller.findAction("LEFT_HAND_CLICK");
|
||||
}
|
||||
Overlays.editOverlay(this.laserPointer, {visible: true});
|
||||
},
|
||||
|
||||
continueFarGrabbingNonColliding: function() {
|
||||
|
@ -85,7 +86,8 @@
|
|||
if (this.triggerValue > PAINT_TRIGGER_THRESHOLD) {
|
||||
this.paint(this.intersection.intersection, this.intersection.surfaceNormal);
|
||||
} else {
|
||||
this.releaseGrab();
|
||||
this.painting = false;
|
||||
this.oldPosition = null;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -167,6 +169,7 @@
|
|||
|
||||
releaseGrab: function() {
|
||||
this.painting = false;
|
||||
Overlays.editOverlay(this.laserPointer, {visible: false});
|
||||
this.oldPosition = null;
|
||||
},
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ var eraseBoxDimensions = {
|
|||
};
|
||||
|
||||
|
||||
var eraseBoxPosition = Vec3.sum(center, Vec3.multiply(direction, whiteboardDimensions.x / 2 + eraseBoxDimensions.x / 2));
|
||||
var eraseBoxPosition = Vec3.sum(center, Vec3.multiply(direction, whiteboardDimensions.x / 2 + eraseBoxDimensions.x / 2 + 0.01));
|
||||
eraseBoxPosition.y += 0.3;
|
||||
scriptURL = Script.resolvePath("eraseBoardEntityScript.js");
|
||||
var eraseAllText = Entities.addEntity({
|
||||
|
|
Loading…
Reference in a new issue