mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 23:32:48 +02:00
"Serverless" -> "Place", cut item spawn distance from you in half.
This commit is contained in:
parent
e7f5b333db
commit
705c3dd404
2 changed files with 8 additions and 8 deletions
|
@ -176,7 +176,7 @@ function useItem(item) {
|
||||||
if (item.type == "MODEL") {
|
if (item.type == "MODEL") {
|
||||||
var entityID = Entities.addEntity({
|
var entityID = Entities.addEntity({
|
||||||
type: "Model",
|
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,
|
rotation: MyAvatar.orientation,
|
||||||
modelURL: item.url,
|
modelURL: item.url,
|
||||||
collisionless: true,
|
collisionless: true,
|
||||||
|
@ -187,7 +187,7 @@ function useItem(item) {
|
||||||
MyAvatar.useFullAvatarURL(item.url);
|
MyAvatar.useFullAvatarURL(item.url);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.type == "SERVERLESS") {
|
if (item.type == "PLACE") {
|
||||||
location.handleLookupString(item.url, true); // https://apidocs.vircadia.dev/location.html#.handleLookupString
|
location.handleLookupString(item.url, true); // https://apidocs.vircadia.dev/location.html#.handleLookupString
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ function useItem(item) {
|
||||||
Clipboard.pasteEntities(
|
Clipboard.pasteEntities(
|
||||||
Vec3.sum(
|
Vec3.sum(
|
||||||
MyAvatar.position,
|
MyAvatar.position,
|
||||||
Vec3.multiplyQbyV(MyAvatar.orientation, { x: 0, y: 0, z: -3 })
|
Vec3.multiplyQbyV(MyAvatar.orientation, { x: 0, y: 0, z: -1.5 })
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -954,8 +954,8 @@ export default {
|
||||||
"uuid": "54254354980-7667jt353",
|
"uuid": "54254354980-7667jt353",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "serverless",
|
"type": "place",
|
||||||
"name": "SERVERLESS DOMAIN",
|
"name": "PLACE DOMAIN",
|
||||||
"url": "https://googleee.com/vr.fbx",
|
"url": "https://googleee.com/vr.fbx",
|
||||||
"folder": "No Folder",
|
"folder": "No Folder",
|
||||||
"uuid": "542543sg45s4gg54353",
|
"uuid": "542543sg45s4gg54353",
|
||||||
|
@ -974,7 +974,7 @@ export default {
|
||||||
"icon": "mdi-account-convert",
|
"icon": "mdi-account-convert",
|
||||||
"color": "purple",
|
"color": "purple",
|
||||||
},
|
},
|
||||||
"SERVERLESS": {
|
"PLACE": {
|
||||||
"icon": "mdi-earth",
|
"icon": "mdi-earth",
|
||||||
"color": "#0097A7", // cyan darken-2
|
"color": "#0097A7", // cyan darken-2
|
||||||
},
|
},
|
||||||
|
@ -1182,8 +1182,8 @@ export default {
|
||||||
case "SCRIPT":
|
case "SCRIPT":
|
||||||
detectedItemType = "SCRIPT";
|
detectedItemType = "SCRIPT";
|
||||||
break;
|
break;
|
||||||
case "SERVERLESS":
|
case "PLACE":
|
||||||
detectedItemType = "SERVERLESS";
|
detectedItemType = "PLACE";
|
||||||
break;
|
break;
|
||||||
case "JSON":
|
case "JSON":
|
||||||
detectedItemType = "JSON";
|
detectedItemType = "JSON";
|
||||||
|
|
Loading…
Reference in a new issue