mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
switch branches
This commit is contained in:
parent
6b14fa8dcb
commit
46aebabd9b
2 changed files with 11 additions and 19 deletions
|
@ -38,8 +38,8 @@
|
|||
this.initTimeout = null;
|
||||
this.minVelocity = 1;
|
||||
this.maxVelocity = 5;
|
||||
this.minAngularVelocity = 0.01;
|
||||
this.maxAngularVelocity = 0.03;
|
||||
this.minAngularVelocity = 0.03;
|
||||
this.maxAngularVelocity = 0.10;
|
||||
baton = virtualBaton({
|
||||
batonName: 'io.highfidelity.cells:' + entityID, // One winner for each entity
|
||||
});
|
||||
|
@ -69,7 +69,7 @@
|
|||
};
|
||||
|
||||
self.teleportSound = SoundCache.getSound("https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/Audio/whoosh.wav");
|
||||
// print(" portal destination is " + self.portalDestination);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -81,13 +81,6 @@
|
|||
print("Teleporting to (" + data.location.x + ", " + data.location.y + ", " + data.location.z + ")");
|
||||
|
||||
MyAvatar.position = data.location;
|
||||
|
||||
// if (data.hasOwnProperty('entryPoint') && data.hasOwnProperty('target')) {
|
||||
// this.lookAtTarget(data.entryPoint, data.target);
|
||||
// }
|
||||
// else{
|
||||
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -143,11 +136,11 @@
|
|||
}
|
||||
|
||||
this.getTotalWait = function() {
|
||||
return (Math.random() * 5000) * 2;
|
||||
return (Math.random() * 5000) * 3;
|
||||
}
|
||||
|
||||
this.move = function() {
|
||||
if (self.iOwn===false) {
|
||||
if (self.iOwn === false) {
|
||||
print('cell is not owned by me...')
|
||||
return;
|
||||
}
|
||||
|
@ -159,9 +152,8 @@
|
|||
y: Math.random() - 0.5,
|
||||
z: Math.random() - 0.5
|
||||
};
|
||||
print("ROT magnitude is " + magnitudeAV + " and direction is " + directionAV.x);
|
||||
// print("ROT magnitude is " + magnitudeAV + " and direction is " + directionAV.x);
|
||||
Entities.editEntity(self.entityId, {
|
||||
// velocity: Vec3.multiply(magnitudeV, Vec3.normalize(directionV)),
|
||||
angularVelocity: Vec3.multiply(magnitudeAV, Vec3.normalize(directionAV))
|
||||
|
||||
});
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
var version = 1055;
|
||||
var version = 1057;
|
||||
var cellLayout;
|
||||
var baseLocation = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/";
|
||||
|
||||
|
@ -103,16 +103,16 @@ var scenes = [{
|
|||
instances: [{
|
||||
model: "Cell",
|
||||
dimensions: {
|
||||
x: 550,
|
||||
y: 620,
|
||||
z: 550
|
||||
x: 500,
|
||||
y: 570,
|
||||
z: 500
|
||||
},
|
||||
offset: {
|
||||
x: 0,
|
||||
y: 0,
|
||||
z: 0
|
||||
},
|
||||
radius: 500,
|
||||
radius: 450,
|
||||
number: 10,
|
||||
userData: JSON.stringify({
|
||||
entryPoint: locations.cellLayout[1],
|
||||
|
|
Loading…
Reference in a new issue