mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
change offsetPosition to use Camera.orientation
This commit is contained in:
parent
95fcb1df7a
commit
8bd155cb86
1 changed files with 4 additions and 5 deletions
|
@ -48,7 +48,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getOffsetPosition() {
|
function getOffsetPosition() {
|
||||||
return Vec3.sum(MyAvatar.getHeadPosition(), Quat.getFront(MyAvatar.headOrientation));
|
return Vec3.sum(MyAvatar.getHeadPosition(), Quat.getFront(Camera.orientation));
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMuteToggled() {
|
function onMuteToggled() {
|
||||||
|
@ -63,12 +63,11 @@
|
||||||
overlayPosition = getOffsetPosition();
|
overlayPosition = getOffsetPosition();
|
||||||
overlayID = Overlays.addOverlay("sphere", {
|
overlayID = Overlays.addOverlay("sphere", {
|
||||||
position: overlayPosition,
|
position: overlayPosition,
|
||||||
rotation: MyAvatar.orientation,
|
rotation: Camera.orientation,
|
||||||
alpha: 0.9,
|
alpha: 0.9,
|
||||||
dimensions: 0.1,
|
dimensions: 0.1,
|
||||||
solid: true,
|
solid: true,
|
||||||
ignoreRayIntersection: true,
|
ignoreRayIntersection: true
|
||||||
visible: true
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +98,7 @@
|
||||||
blue: lerp(startColor.blue, endColor.blue, tweenPosition)
|
blue: lerp(startColor.blue, endColor.blue, tweenPosition)
|
||||||
},
|
},
|
||||||
position: overlayPosition,
|
position: overlayPosition,
|
||||||
rotation: MyAvatar.orientation,
|
rotation: Camera.orientation
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue