-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4328e90
commit 5507da5
Showing
4 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[ | ||
{ | ||
"name": "SANCTUARY", | ||
"localPosition": {"x": 906.3857421875,"y": 205.67919921875,"z":-200.65283203125} | ||
"localPosition": {"x": 906.3857421875,"y": 205.67919921875,"z":-200.65283203125}, | ||
"destinationURL": "", | ||
"destinationSkyUrl": "https://aleziakurdis.github.io/inertia/SANCTUARY/images/SANCTUARY_SKY_DEEPBLUE.jpg" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[ | ||
{ | ||
"name": "SANCTUARY", | ||
"localPosition": {"x": 906.3857421875,"y": 205.67919921875,"z":-200.65283203125} | ||
"localPosition": {"x": 906.3857421875,"y": 205.67919921875,"z":-200.65283203125}, | ||
"destinationURL": " https://aleziakurdis.github.io/inertia/SANCTUARY/inertia.json?px=3754.81&py=3877.02&pz=4625.39&rx=0&ry=-0.202187&rz=0&rw=0.979347", | ||
"destinationSkyUrl": "https://aleziakurdis.github.io/inertia/SANCTUARY/images/SANCTUARY_SKY_DEEPBLUE.jpg" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// teleport.js | ||
// | ||
// Created by Alezia Kurdis,November 10th, 2023. | ||
// Copyright 2023, Overte e.V. | ||
// | ||
// Space 3d portals. | ||
// | ||
// Distributed under the Apache License, Version 2.0. | ||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | ||
// | ||
(function(){ | ||
|
||
var ROOT = Script.resolvePath('').split("teleport.js")[0]; | ||
var portalData; | ||
|
||
this.preload = function(entityID) { | ||
|
||
var properties = Entities.getEntityProperties(entityID, ["description"]); | ||
portalData = properties.description; | ||
} | ||
|
||
this.enterEntity = function(entityID) { | ||
if (portalData.length > 0) { | ||
Window.location = portalData; | ||
} | ||
|
||
}; | ||
|
||
this.leaveEntity = function(entityID) { | ||
//do nothing. | ||
}; | ||
|
||
|
||
}) |