mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-09 09:02:29 +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 spriteDimensions = {
|
||||
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() {
|
||||
|
||||
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) {
|
||||
var n = 0;
|
||||
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";
|
||||
|
||||
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() {
|
||||
|
||||
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() {
|
||||
|
||||
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() {
|
||||
var self = this;
|
||||
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() {
|
||||
var baseURL = "https://hifi-content.s3.amazonaws.com/hifi-content/DomainContent/CellScience/";
|
||||
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() {
|
||||
|
||||
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) {
|
||||
var json = JSON.stringify(data)
|
||||
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() {
|
||||
var teleport;
|
||||
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 cellLayout;
|
||||
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 numKinesin = 2;
|
||||
var percentOnMainMT = 100;
|
||||
print('RUNNING AC!!');
|
||||
//print('RUNNING AC!!');
|
||||
var baseLocation;
|
||||
if (USE_LOCAL_HOST === true) {
|
||||
baseLocation = "http://localhost:8080/";
|
||||
|
@ -78,7 +85,7 @@ function deleteAllMotorProteins() {
|
|||
results.forEach(function(r) {
|
||||
var name = Entities.getEntityProperties(r, 'name').name;
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -90,7 +97,7 @@ function deleteAllMotorProteins() {
|
|||
}
|
||||
|
||||
function makeAll() {
|
||||
print('CREATING MOTOR PROTEINS')
|
||||
// print('CREATING MOTOR PROTEINS')
|
||||
var segment;
|
||||
var segments = shuffleSegments();
|
||||
var lastSegment = [];
|
||||
|
@ -191,7 +198,7 @@ function update(deltaTime) {
|
|||
Entities.setPacketsPerSecond(6000);
|
||||
print("PPS:" + Entities.getPacketsPerSecond());
|
||||
Script.setTimeout(function(){
|
||||
print('SETTING TIMEOUT')
|
||||
//print('SETTING TIMEOUT')
|
||||
deleteAllMotorProteins()
|
||||
},10000)
|
||||
|
||||
|
|
Loading…
Reference in a new issue