mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-13 16:13:14 +02:00
Make each hand aware of other
This commit is contained in:
parent
cab2caaf27
commit
0ba11ffdc9
1 changed files with 9 additions and 0 deletions
|
@ -390,6 +390,8 @@
|
|||
doEdit,
|
||||
doHighlight,
|
||||
|
||||
otherHand,
|
||||
|
||||
laser,
|
||||
selection,
|
||||
highlights;
|
||||
|
@ -410,6 +412,10 @@
|
|||
selection = new Selection();
|
||||
highlights = new Highlights(hand);
|
||||
|
||||
function setOtherhand(hand) {
|
||||
otherHand = hand;
|
||||
}
|
||||
|
||||
function startEditing() {
|
||||
var selectionPositionAndOrientation;
|
||||
|
||||
|
@ -613,6 +619,7 @@
|
|||
}
|
||||
|
||||
return {
|
||||
setOtherHand: setOtherhand,
|
||||
update: update,
|
||||
apply: apply,
|
||||
destroy: destroy
|
||||
|
@ -671,6 +678,8 @@
|
|||
// Hands, each with a laser, selection, etc.
|
||||
hands[LEFT_HAND] = new Hand(LEFT_HAND);
|
||||
hands[RIGHT_HAND] = new Hand(RIGHT_HAND);
|
||||
hands[LEFT_HAND].setOtherHand(hands[RIGHT_HAND]);
|
||||
hands[RIGHT_HAND].setOtherHand(hands[LEFT_HAND]);
|
||||
|
||||
if (isAppActive) {
|
||||
update();
|
||||
|
|
Loading…
Reference in a new issue