mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-17 08:40:11 +02:00
use an ORB_SHIFT variable to easily shift the orb position
This commit is contained in:
parent
88475f6154
commit
64c5405a36
1 changed files with 3 additions and 1 deletions
|
@ -32,6 +32,8 @@ var orbCenter = Vec3.multiply(orbNaturalCenter, SCALING_FACTOR)
|
|||
var panelsCenter = Vec3.multiply(panelsNaturalCenter, SCALING_FACTOR)
|
||||
var panelsCenterShift = Vec3.subtract(panelsCenter, orbCenter)
|
||||
|
||||
var ORB_SHIFT = { x: 0, y: -1.5, z: 0.5}
|
||||
|
||||
function drawLobby() {
|
||||
if (!panelWall) {
|
||||
print("Adding overlays for the lobby panel wall and orb shell.")
|
||||
|
@ -39,7 +41,7 @@ function drawLobby() {
|
|||
var cameraEuler = Quat.safeEulerAngles(Camera.getOrientation());
|
||||
var towardsMe = Quat.angleAxis(cameraEuler.y + 180, { x: 0, y: 1, z: 0})
|
||||
|
||||
var orbPosition = Vec3.subtract(Camera.getPosition(), { x: 0, y: 2.0, z: 0})
|
||||
var orbPosition = Vec3.sum(Camera.getPosition(), Vec3.multiplyQbyV(towardsMe, ORB_SHIFT))
|
||||
|
||||
var panelWallProps = {
|
||||
url: "http://s3.amazonaws.com/hifi-public/models/sets/Lobby/LobbyPrototype/PanelWall3.fbx",
|
||||
|
|
Loading…
Reference in a new issue