mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
slightly further forward, a little bigger
This commit is contained in:
parent
f1d6335a24
commit
d5e6afa15a
1 changed files with 3 additions and 3 deletions
|
@ -264,20 +264,20 @@ function updateOverlays() {
|
|||
var target = avatar.position;
|
||||
|
||||
// now adjust target to be slightly in front
|
||||
target = Vec3.subtract(target, Vec3.multiply(Vec3.normalize(eye), -0.1));
|
||||
target = Vec3.subtract(target, Vec3.multiply(Vec3.normalize(eye), -0.2));
|
||||
|
||||
var distance = Vec3.distance(target, eye);
|
||||
overlay.ping = pingPong;
|
||||
overlay.editOverlay({
|
||||
position: target,
|
||||
scale: 0.15 * distance, // constant apparent size
|
||||
scale: 0.2 * distance, // constant apparent size
|
||||
rotation: Camera.orientation
|
||||
});
|
||||
if (overlay.sphere) {
|
||||
overlay.sphere.ping = pingPong;
|
||||
overlay.sphere.editOverlay({
|
||||
position: target,
|
||||
dimensions: 0.025 * distance
|
||||
dimensions: 0.032 * distance
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue