mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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);
|
||||
}
|
||||
|
||||
function matchBasePosition(){
|
||||
function matchBasePosition() {
|
||||
var ids = Entities.findEntities(MyAvatar.position, 20);
|
||||
for (var i = 0; i < ids.length; i++) {
|
||||
var entityID = ids[i];
|
||||
|
@ -412,9 +412,10 @@
|
|||
var details = Entities.getEntityProperties(entityID, ["position", "dimensions"]);
|
||||
details.position.y += getAvatarFootOffset();
|
||||
details.position.y += details.dimensions.y / 2;
|
||||
print('JBP BASE POSITION ' + JSON.stringify(details.position))
|
||||
return details.position;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -448,11 +449,7 @@
|
|||
}
|
||||
|
||||
|
||||
function getAvatarDimensions(avatar) {
|
||||
return dimensions;
|
||||
}
|
||||
|
||||
function matchBaseRotation(){
|
||||
function matchBaseRotation() {
|
||||
var ids = Entities.findEntities(MyAvatar.position, 20);
|
||||
var hasBase = false;
|
||||
for (var i = 0; i < ids.length; i++) {
|
||||
|
@ -461,7 +458,7 @@
|
|||
var name = props.name;
|
||||
if (name === "Hifi-Dressing-Room-Base") {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -477,10 +474,10 @@
|
|||
|
||||
function disconnectDoppelgangerUpdates() {
|
||||
|
||||
// if (isConnected === true) {
|
||||
if (isConnected === true) {
|
||||
print('SHOULD DISCONNECT')
|
||||
Script.update.disconnect(updateDoppelganger);
|
||||
// }
|
||||
}
|
||||
isConnected = false;
|
||||
}
|
||||
|
||||
|
@ -517,6 +514,7 @@
|
|||
}
|
||||
|
||||
function makeDoppelgangerForMyAvatar() {
|
||||
doppelgangers = [];
|
||||
var doppelganger = createDoppelganger(MyAvatar);
|
||||
doppelgangers.push(doppelganger);
|
||||
connectDoppelgangerUpdates();
|
||||
|
|
|
@ -108,13 +108,13 @@
|
|||
if (properties.hasOwnProperty('userData') === false || properties.userData.length === 0) {
|
||||
_this.initTimeout = Script.setTimeout(function() {
|
||||
if (properties.hasOwnProperty('userData')) {
|
||||
print('JBP has user data property')
|
||||
//print('JBP has user data property')
|
||||
}
|
||||
if (properties.userData.length === 0) {
|
||||
print('JBP user data length is zero')
|
||||
//print('JBP user data length is zero')
|
||||
}
|
||||
if (properties.userData === "") {
|
||||
print('JBP user data is empty')
|
||||
//print('JBP user data is empty')
|
||||
}
|
||||
|
||||
// print('try again in one second')
|
||||
|
|
Loading…
Reference in a new issue