mirror of
https://github.com/lubosz/overte.git
synced 2025-08-27 07:05:46 +02:00
Add left/right annotations
This commit is contained in:
parent
f4f2ec5da8
commit
f937b57070
2 changed files with 50 additions and 0 deletions
|
@ -623,6 +623,9 @@ var stepTurnAround = function(name) {
|
|||
}
|
||||
stepTurnAround.prototype = {
|
||||
start: function(onFinish) {
|
||||
setControllerVisible("left", true);
|
||||
setControllerVisible("right", true);
|
||||
|
||||
showEntitiesWithTag(this.tag);
|
||||
var hasTurnedAround = false;
|
||||
this.interval = Script.setInterval(function() {
|
||||
|
@ -646,6 +649,9 @@ stepTurnAround.prototype = {
|
|||
}.bind(this), 100);
|
||||
},
|
||||
cleanup: function() {
|
||||
setControllerVisible("left", false);
|
||||
setControllerVisible("right", false);
|
||||
|
||||
if (this.interval) {
|
||||
Script.clearInterval(this.interval);
|
||||
}
|
||||
|
|
|
@ -283,6 +283,28 @@ var VIVE_CONTROLLER_CONFIGURATION = {
|
|||
// color: { red: 100, green: 255, blue: 255 },
|
||||
// },
|
||||
|
||||
left: {
|
||||
textOffset: { x: -0.035, y: 0.004, z: -0.005 },
|
||||
position: {
|
||||
x: 0,
|
||||
y: 0.00378,
|
||||
z: 0.04920
|
||||
},
|
||||
direction: "left",
|
||||
color: { red: 255, green: 100, blue: 100 },
|
||||
},
|
||||
right: {
|
||||
textOffset: { x: 0.023, y: 0.004, z: -0.005 },
|
||||
position: {
|
||||
x: 0,
|
||||
y: 0.00378,
|
||||
z: 0.04920
|
||||
},
|
||||
direction: "left",
|
||||
color: { red: 255, green: 100, blue: 100 },
|
||||
},
|
||||
|
||||
|
||||
trigger: {
|
||||
position: {
|
||||
x: 0.0055,
|
||||
|
@ -348,6 +370,28 @@ var VIVE_CONTROLLER_CONFIGURATION = {
|
|||
|
||||
annotationTextRotation: Quat.fromPitchYawRollDegrees(180 + 45, 90, 180),
|
||||
annotations: {
|
||||
|
||||
left: {
|
||||
textOffset: { x: -0.035, y: 0.004, z: -0.005 },
|
||||
position: {
|
||||
x: 0,
|
||||
y: 0.00378,
|
||||
z: 0.04920
|
||||
},
|
||||
direction: "left",
|
||||
color: { red: 255, green: 100, blue: 100 },
|
||||
},
|
||||
right: {
|
||||
textOffset: { x: 0.023, y: 0.004, z: -0.005 },
|
||||
position: {
|
||||
x: 0,
|
||||
y: 0.00378,
|
||||
z: 0.04920
|
||||
},
|
||||
direction: "left",
|
||||
color: { red: 255, green: 100, blue: 100 },
|
||||
},
|
||||
|
||||
trigger: {
|
||||
position: {
|
||||
x: -0.075,
|
||||
|
|
Loading…
Reference in a new issue