mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:12:46 +02:00
add simple headers to all files
This commit is contained in:
parent
7d0eb79115
commit
fb6fcab078
13 changed files with 96 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
var spriteURL = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/Sprites/nucleosomes_sprite.fbx";
|
var spriteURL = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/Sprites/nucleosomes_sprite.fbx";
|
||||||
var spriteDimensions = {
|
var spriteDimensions = {
|
||||||
x: 10,
|
x: 10,
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
var TARGET_OFFSET = {
|
var TARGET_OFFSET = {
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
function deleteAllInRadius(r) {
|
function deleteAllInRadius(r) {
|
||||||
var n = 0;
|
var n = 0;
|
||||||
var arrayFound = Entities.findEntities(MyAvatar.position, r);
|
var arrayFound = Entities.findEntities(MyAvatar.position, r);
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
var scriptName = "Controller";
|
var scriptName = "Controller";
|
||||||
|
|
||||||
function findScriptsInRadius(r) {
|
function findScriptsInRadius(r) {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
var version = 1;
|
var version = 1;
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
var baseURL = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/";
|
var baseURL = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/";
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var baseURL = "https://hifi-content.s3.amazonaws.com/hifi-content/DomainContent/CellScience/";
|
var baseURL = "https://hifi-content.s3.amazonaws.com/hifi-content/DomainContent/CellScience/";
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
setEntityUserData = function(id, data) {
|
setEntityUserData = function(id, data) {
|
||||||
var json = JSON.stringify(data)
|
var json = JSON.stringify(data)
|
||||||
Entities.editEntity(id, {
|
Entities.editEntity(id, {
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var teleport;
|
var teleport;
|
||||||
var portalDestination;
|
var portalDestination;
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
var version = 1003;
|
var version = 1003;
|
||||||
var cellLayout;
|
var cellLayout;
|
||||||
var baseLocation = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/";
|
var baseLocation = "https://hifi-content.s3.amazonaws.com/DomainContent/CellScience/";
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
var numDynein = 2;
|
var numDynein = 2;
|
||||||
var numKinesin = 2;
|
var numKinesin = 2;
|
||||||
var percentOnMainMT = 100;
|
var percentOnMainMT = 100;
|
||||||
print('RUNNING AC!!');
|
//print('RUNNING AC!!');
|
||||||
var baseLocation;
|
var baseLocation;
|
||||||
if (USE_LOCAL_HOST === true) {
|
if (USE_LOCAL_HOST === true) {
|
||||||
baseLocation = "http://localhost:8080/";
|
baseLocation = "http://localhost:8080/";
|
||||||
|
@ -78,7 +85,7 @@ function deleteAllMotorProteins() {
|
||||||
results.forEach(function(r) {
|
results.forEach(function(r) {
|
||||||
var name = Entities.getEntityProperties(r, 'name').name;
|
var name = Entities.getEntityProperties(r, 'name').name;
|
||||||
if (name.indexOf('Hifi-Motor-Protein-Anchor') > -1) {
|
if (name.indexOf('Hifi-Motor-Protein-Anchor') > -1) {
|
||||||
print('Script.clearTimeout DELETING A MOTOR PROTEIN::' + r)
|
// print('Script.clearTimeout DELETING A MOTOR PROTEIN::' + r)
|
||||||
Entities.deleteEntity(r);
|
Entities.deleteEntity(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,7 +97,7 @@ function deleteAllMotorProteins() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeAll() {
|
function makeAll() {
|
||||||
print('CREATING MOTOR PROTEINS')
|
// print('CREATING MOTOR PROTEINS')
|
||||||
var segment;
|
var segment;
|
||||||
var segments = shuffleSegments();
|
var segments = shuffleSegments();
|
||||||
var lastSegment = [];
|
var lastSegment = [];
|
||||||
|
@ -191,7 +198,7 @@ function update(deltaTime) {
|
||||||
Entities.setPacketsPerSecond(6000);
|
Entities.setPacketsPerSecond(6000);
|
||||||
print("PPS:" + Entities.getPacketsPerSecond());
|
print("PPS:" + Entities.getPacketsPerSecond());
|
||||||
Script.setTimeout(function(){
|
Script.setTimeout(function(){
|
||||||
print('SETTING TIMEOUT')
|
//print('SETTING TIMEOUT')
|
||||||
deleteAllMotorProteins()
|
deleteAllMotorProteins()
|
||||||
},10000)
|
},10000)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue