mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 07:49:13 +02:00
set offset to zeros
This commit is contained in:
parent
b08a9baa5c
commit
5daacdf952
4 changed files with 30 additions and 31 deletions
|
@ -5,12 +5,12 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
var version = 1207;
|
||||
var version = 1209;
|
||||
|
||||
var WORLD_OFFSET = {
|
||||
x: -6000,
|
||||
y: -6000,
|
||||
z: -6000
|
||||
x: 0,
|
||||
y: 0,
|
||||
z: 0
|
||||
}
|
||||
|
||||
var WORLD_SCALE_AMOUNT = 1.0;
|
||||
|
@ -21,7 +21,6 @@ function offsetVectorToWorld(vector) {
|
|||
|
||||
newVector = Vec3.sum(vector, WORLD_OFFSET);
|
||||
|
||||
print('JBP NEW VECTOR IS:: ' + JSON.stringify(newVector))
|
||||
return newVector
|
||||
}
|
||||
|
||||
|
@ -58,7 +57,7 @@ assignVariables();
|
|||
var locations = {
|
||||
cellLayout: [offsetVectorToWorld({
|
||||
x: 3000,
|
||||
y: 10500,
|
||||
y: 13500,
|
||||
z: 3000
|
||||
}), offsetVectorToWorld({
|
||||
x: 3276.6,
|
||||
|
@ -67,11 +66,11 @@ var locations = {
|
|||
}), 1800],
|
||||
cells: [offsetVectorToWorld({
|
||||
x: 13500,
|
||||
y: 10500,
|
||||
y: 13500,
|
||||
z: 13500
|
||||
}), offsetVectorToWorld({
|
||||
x: 13501,
|
||||
y: 10501,
|
||||
y: 13501,
|
||||
z: 13501
|
||||
}), 400],
|
||||
ribosome: [offsetVectorToWorld({
|
||||
|
@ -94,7 +93,7 @@ var locations = {
|
|||
}), 2000],
|
||||
mitochondria: [offsetVectorToWorld({
|
||||
x: 3000,
|
||||
y: 10500,
|
||||
y: 13500,
|
||||
z: 3000
|
||||
}), offsetVectorToWorld({
|
||||
x: 3240,
|
||||
|
@ -103,11 +102,11 @@ var locations = {
|
|||
}), 1000],
|
||||
translation: [offsetVectorToWorld({
|
||||
x: 3000,
|
||||
y: 10500,
|
||||
y: 13500,
|
||||
z: 3000
|
||||
}), offsetVectorToWorld({
|
||||
x: 2962,
|
||||
y: 10492,
|
||||
y: 13492,
|
||||
z: 3342
|
||||
}), 1000]
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
var numDynein = 2;
|
||||
var numKinesin = 2;
|
||||
var percentOnMainMT = 100;
|
||||
//print('RUNNING AC!!');
|
||||
|
||||
var baseLocation;
|
||||
if (USE_LOCAL_HOST === true) {
|
||||
baseLocation = "http://localhost:8080/";
|
||||
|
@ -17,9 +17,9 @@ if (USE_LOCAL_HOST === true) {
|
|||
}
|
||||
|
||||
var WORLD_OFFSET = {
|
||||
x: -6000,
|
||||
y: -6000,
|
||||
z: -6000
|
||||
x: 0,
|
||||
y: 0,
|
||||
z: 0
|
||||
}
|
||||
|
||||
var WORLD_SCALE_AMOUNT = 1.0;
|
||||
|
@ -37,7 +37,7 @@ var USE_LOCAL_HOST = false;
|
|||
|
||||
var basePosition = offsetVectorToWorld({
|
||||
x: 3000,
|
||||
y: 10500,
|
||||
y: 13500,
|
||||
z: 3000
|
||||
});
|
||||
|
||||
|
@ -65,7 +65,7 @@ var t = 0;
|
|||
var tInc = 0.001;
|
||||
var sceneOffset = offsetVectorToWorld({
|
||||
x: 3000,
|
||||
y: 10500,
|
||||
y: 13500,
|
||||
z: 3000
|
||||
});
|
||||
|
||||
|
@ -82,7 +82,7 @@ var secondaryInit = false;
|
|||
function deleteAllMotorProteins() {
|
||||
var position = offsetVectorToWorld({
|
||||
x: 3280,
|
||||
y: 10703,
|
||||
y: 13703,
|
||||
z: 4405
|
||||
});
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
var WORLD_OFFSET = {
|
||||
x: -6000,
|
||||
y: -6000,
|
||||
z: -6000
|
||||
x: 0,
|
||||
y: 0,
|
||||
z: 0
|
||||
}
|
||||
|
||||
var WORLD_SCALE_AMOUNT = 1.0;
|
||||
|
@ -24,7 +24,7 @@ function offsetVectorToWorld(vector) {
|
|||
|
||||
var basePosition = offsetVectorToWorld({
|
||||
x: 3000,
|
||||
y: 10500,
|
||||
y: 13500,
|
||||
z: 3000
|
||||
}, WORLD_OFFSET);
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
var WORLD_OFFSET = {
|
||||
x: -6000,
|
||||
y: -6000,
|
||||
z: -6000
|
||||
x: 0,
|
||||
y: 0,
|
||||
z: 0
|
||||
}
|
||||
|
||||
var WORLD_SCALE_AMOUNT = 1.0;
|
||||
|
@ -23,7 +23,7 @@ function offsetVectorToWorld(vector) {
|
|||
|
||||
var basePosition = offsetVectorToWorld({
|
||||
x: 3000,
|
||||
y: 10500,
|
||||
y: 13500,
|
||||
z: 3000
|
||||
}, WORLD_OFFSET);
|
||||
|
||||
|
|
Loading…
Reference in a new issue