This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title></title> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** vim: et:ts=4:sw=4:sts=4 | |
* @license RequireJS 2.3.5 Copyright jQuery Foundation and other contributors. | |
* Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE | |
*/ | |
var requirejs,require,define;!function(global,setTimeout){function commentReplace(e,t){return t||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var i;for(i=0;i<e.length&&(!e[i]||!t(e[i],i,e));i+=1);}}function eachReverse(e,t){if(e){var i;for(i=e.length-1;i>-1&&(!e[i]||!t(e[i],i,e));i-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var i;for(i in e)if(hasProp(e,i)&&t(e[i],i))break}function mixin(e,t,i,r){return t&&eachProp(t,function(t,n){!i&&hasProp(e,n)||(!r||"object"!=typeof t||!t||isArray(t)||isFunction(t)||t instanceof RegExp?e[n]=t:(e[n]||(e[n]={}),mixin(e[n],t,i,r)))}),e}function bind(e,t){return function(){return t.apply(e,a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// harmonicOscillator.js | |
// | |
// Created by Philip Rosedale on May 5, 2015 | |
// Copyright 2015 High Fidelity, Inc. | |
// | |
// An object moves around the edge of a disc while | |
// changing color. The script is continuously updating | |
// position, velocity, rotation, and color. The movement | |
// should appear perfectly smooth to someone else, | |
// provided their network connection is good. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ambientSound.js | |
// | |
// This entity script will allow you to create an ambient sound that loops when a person is within a given | |
// range of this entity. Great way to add one or more ambisonic soundfields to your environment. | |
// | |
// In the userData section for the entity, add two values: | |
// userData.SoundURL should be a string giving the URL to the sound file. Defaults to 100 meters if not set. | |
// userData.range should be an integer for the max distance away from the entity where the sound will be audible. | |
// userData.volume is the max volume at which the clip should play. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var _this = this; | |
var sound = SoundCache.getSound("https://s3.amazonaws.com/converter.tipodean.com/sounds/Brahms_Sym1-mono.wav"); | |
// this is the version of injector that is visible to your leaveEntity() method | |
var injector; | |
_this.enterEntity = function(entityID) { | |
print('I am insiude'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var _this = this; | |
var sound = SoundCache.getSound("https://s3.amazonaws.com/converter.tipodean.com/sounds/Aran_Music_Mix-ambiX.wav"); | |
// this is the version of injector that is visible to your leaveEntity() method | |
var injector; | |
_this.enterEntity = function(entityID) { | |
print('I am insiude'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("$$$$$$$ Create Web overlay"); | |
var dimensions = { x: 4, y: 3 }; | |
var METERS_TO_INCHES = 39.3701; | |
// Web overlays are size by resolution and DPI (not dimensions). | |
var webOverlay = Overlays.addOverlay("web3d", { | |
url: "https://highfidelity.com/marketplace?category=architecture", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("$$$$$$$ Create Web entity"); | |
var webEntity = Entities.addEntity({ | |
name: "web", | |
type: "Web", | |
sourceUrl: "https://highfidelity.com/marketplace?category=architecture", | |
dimensions: { x: 4, y: 3, z: 0.1 }, | |
position: Vec3.sum(MyAvatar.position, Vec3.multiplyQbyV(MyAvatar.orientation, { x: 2.5, y: 0.75, z: -8 })), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
/* jslint vars: true, plusplus: true */ | |
// | |
// defaultScripts.js | |
// examples | |
// | |
// Copyright 2014 High Fidelity, Inc. | |
// | |
// Distributed under the Apache License, Version 2.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// people.js | |
// | |
// | |
// Created by Stephen Birarda on 05/08/15. | |
// Modified by Chris Collins, many many times. | |
// Copyright 2015 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 |
NewerOlder