"Serverless" -> "Place", cut item spawn distance from you in half.

This commit is contained in:
Kasen IO 2020-04-11 18:10:47 -04:00
parent e7f5b333db
commit 705c3dd404
2 changed files with 8 additions and 8 deletions

View file

@ -176,7 +176,7 @@ function useItem(item) {
if (item.type == "MODEL") {
var entityID = Entities.addEntity({
type: "Model",
position: Vec3.sum(MyAvatar.position, Vec3.multiplyQbyV(MyAvatar.orientation, { x: 0, y: 0, z: -3 })),
position: Vec3.sum(MyAvatar.position, Vec3.multiplyQbyV(MyAvatar.orientation, { x: 0, y: 0, z: -1.5 })),
rotation: MyAvatar.orientation,
modelURL: item.url,
collisionless: true,
@ -187,7 +187,7 @@ function useItem(item) {
MyAvatar.useFullAvatarURL(item.url);
}
if (item.type == "SERVERLESS") {
if (item.type == "PLACE") {
location.handleLookupString(item.url, true); // https://apidocs.vircadia.dev/location.html#.handleLookupString
}
@ -199,7 +199,7 @@ function useItem(item) {
Clipboard.pasteEntities(
Vec3.sum(
MyAvatar.position,
Vec3.multiplyQbyV(MyAvatar.orientation, { x: 0, y: 0, z: -3 })
Vec3.multiplyQbyV(MyAvatar.orientation, { x: 0, y: 0, z: -1.5 })
)
);
}

View file

@ -954,8 +954,8 @@ export default {
"uuid": "54254354980-7667jt353",
},
{
"type": "serverless",
"name": "SERVERLESS DOMAIN",
"type": "place",
"name": "PLACE DOMAIN",
"url": "https://googleee.com/vr.fbx",
"folder": "No Folder",
"uuid": "542543sg45s4gg54353",
@ -974,7 +974,7 @@ export default {
"icon": "mdi-account-convert",
"color": "purple",
},
"SERVERLESS": {
"PLACE": {
"icon": "mdi-earth",
"color": "#0097A7", // cyan darken-2
},
@ -1182,8 +1182,8 @@ export default {
case "SCRIPT":
detectedItemType = "SCRIPT";
break;
case "SERVERLESS":
detectedItemType = "SERVERLESS";
case "PLACE":
detectedItemType = "PLACE";
break;
case "JSON":
detectedItemType = "JSON";