mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +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() {
|
||||
return Vec3.sum(MyAvatar.getHeadPosition(), Quat.getFront(MyAvatar.headOrientation));
|
||||
return Vec3.sum(MyAvatar.getHeadPosition(), Quat.getFront(Camera.orientation));
|
||||
}
|
||||
|
||||
function onMuteToggled() {
|
||||
|
@ -63,12 +63,11 @@
|
|||
overlayPosition = getOffsetPosition();
|
||||
overlayID = Overlays.addOverlay("sphere", {
|
||||
position: overlayPosition,
|
||||
rotation: MyAvatar.orientation,
|
||||
rotation: Camera.orientation,
|
||||
alpha: 0.9,
|
||||
dimensions: 0.1,
|
||||
solid: true,
|
||||
ignoreRayIntersection: true,
|
||||
visible: true
|
||||
ignoreRayIntersection: true
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -99,7 +98,7 @@
|
|||
blue: lerp(startColor.blue, endColor.blue, tweenPosition)
|
||||
},
|
||||
position: overlayPosition,
|
||||
rotation: MyAvatar.orientation,
|
||||
rotation: Camera.orientation
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue