mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
logs
This commit is contained in:
parent
e9b7982390
commit
91499b6fd9
2 changed files with 11 additions and 13 deletions
|
@ -402,7 +402,7 @@
|
||||||
return Entities.addEntity(doppelganger.initialProperties);
|
return Entities.addEntity(doppelganger.initialProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
function matchBasePosition(){
|
function matchBasePosition() {
|
||||||
var ids = Entities.findEntities(MyAvatar.position, 20);
|
var ids = Entities.findEntities(MyAvatar.position, 20);
|
||||||
for (var i = 0; i < ids.length; i++) {
|
for (var i = 0; i < ids.length; i++) {
|
||||||
var entityID = ids[i];
|
var entityID = ids[i];
|
||||||
|
@ -412,9 +412,10 @@
|
||||||
var details = Entities.getEntityProperties(entityID, ["position", "dimensions"]);
|
var details = Entities.getEntityProperties(entityID, ["position", "dimensions"]);
|
||||||
details.position.y += getAvatarFootOffset();
|
details.position.y += getAvatarFootOffset();
|
||||||
details.position.y += details.dimensions.y / 2;
|
details.position.y += details.dimensions.y / 2;
|
||||||
|
print('JBP BASE POSITION ' + JSON.stringify(details.position))
|
||||||
return details.position;
|
return details.position;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -448,11 +449,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getAvatarDimensions(avatar) {
|
function matchBaseRotation() {
|
||||||
return dimensions;
|
|
||||||
}
|
|
||||||
|
|
||||||
function matchBaseRotation(){
|
|
||||||
var ids = Entities.findEntities(MyAvatar.position, 20);
|
var ids = Entities.findEntities(MyAvatar.position, 20);
|
||||||
var hasBase = false;
|
var hasBase = false;
|
||||||
for (var i = 0; i < ids.length; i++) {
|
for (var i = 0; i < ids.length; i++) {
|
||||||
|
@ -461,7 +458,7 @@
|
||||||
var name = props.name;
|
var name = props.name;
|
||||||
if (name === "Hifi-Dressing-Room-Base") {
|
if (name === "Hifi-Dressing-Room-Base") {
|
||||||
var details = Entities.getEntityProperties(entityID, "rotation");
|
var details = Entities.getEntityProperties(entityID, "rotation");
|
||||||
print('DOPPELGANGER ROTATION SET TO BASE:: ' + JSON.stringify(details.rotation))
|
print('JBP DOPPELGANGER ROTATION SET TO BASE:: ' + JSON.stringify(details.rotation))
|
||||||
return details.rotation;
|
return details.rotation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -477,10 +474,10 @@
|
||||||
|
|
||||||
function disconnectDoppelgangerUpdates() {
|
function disconnectDoppelgangerUpdates() {
|
||||||
|
|
||||||
// if (isConnected === true) {
|
if (isConnected === true) {
|
||||||
print('SHOULD DISCONNECT')
|
print('SHOULD DISCONNECT')
|
||||||
Script.update.disconnect(updateDoppelganger);
|
Script.update.disconnect(updateDoppelganger);
|
||||||
// }
|
}
|
||||||
isConnected = false;
|
isConnected = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -517,6 +514,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeDoppelgangerForMyAvatar() {
|
function makeDoppelgangerForMyAvatar() {
|
||||||
|
doppelgangers = [];
|
||||||
var doppelganger = createDoppelganger(MyAvatar);
|
var doppelganger = createDoppelganger(MyAvatar);
|
||||||
doppelgangers.push(doppelganger);
|
doppelgangers.push(doppelganger);
|
||||||
connectDoppelgangerUpdates();
|
connectDoppelgangerUpdates();
|
||||||
|
|
|
@ -108,13 +108,13 @@
|
||||||
if (properties.hasOwnProperty('userData') === false || properties.userData.length === 0) {
|
if (properties.hasOwnProperty('userData') === false || properties.userData.length === 0) {
|
||||||
_this.initTimeout = Script.setTimeout(function() {
|
_this.initTimeout = Script.setTimeout(function() {
|
||||||
if (properties.hasOwnProperty('userData')) {
|
if (properties.hasOwnProperty('userData')) {
|
||||||
print('JBP has user data property')
|
//print('JBP has user data property')
|
||||||
}
|
}
|
||||||
if (properties.userData.length === 0) {
|
if (properties.userData.length === 0) {
|
||||||
print('JBP user data length is zero')
|
//print('JBP user data length is zero')
|
||||||
}
|
}
|
||||||
if (properties.userData === "") {
|
if (properties.userData === "") {
|
||||||
print('JBP user data is empty')
|
//print('JBP user data is empty')
|
||||||
}
|
}
|
||||||
|
|
||||||
// print('try again in one second')
|
// print('try again in one second')
|
||||||
|
|
Loading…
Reference in a new issue