mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 17:46:52 +02:00
convert flashlight and music player
This commit is contained in:
parent
a9c95d8e7c
commit
5e31c5f385
4 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ Script.include("libraries/utils.js");
|
||||||
|
|
||||||
var scriptURL = Script.resolvePath('flashlight.js');
|
var scriptURL = Script.resolvePath('flashlight.js');
|
||||||
|
|
||||||
var modelURL = "https://hifi-public.s3.amazonaws.com/models/props/flashlight.fbx";
|
var modelURL = "http://hifi-production.s3.amazonaws.com/DomainContent/Toybox/flashlight/flashlight.fbx";
|
||||||
|
|
||||||
var center = Vec3.sum(Vec3.sum(MyAvatar.position, {
|
var center = Vec3.sum(Vec3.sum(MyAvatar.position, {
|
||||||
x: 0,
|
x: 0,
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
|
|
||||||
Script.include("libraries/utils.js");
|
Script.include("libraries/utils.js");
|
||||||
|
|
||||||
var ON_SOUND_URL = 'http://hifi-public.s3.amazonaws.com/sounds/Switches%20and%20sliders/flashlight_on.wav';
|
var ON_SOUND_URL = 'http://hifi-production.s3.amazonaws.com/DomainContent/Toybox/flashlight/flashlight_on.wav';
|
||||||
var OFF_SOUND_URL = 'http://hifi-public.s3.amazonaws.com/sounds/Switches%20and%20sliders/flashlight_off.wav';
|
var OFF_SOUND_URL = 'http://hifi-production.s3.amazonaws.com/DomainContent/Toybox/flashlight/flashlight_off.wav';
|
||||||
|
|
||||||
//we are creating lights that we don't want to get stranded so lets make sure that we can get rid of them
|
//we are creating lights that we don't want to get stranded so lets make sure that we can get rid of them
|
||||||
var startTime = Date.now();
|
var startTime = Date.now();
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
Script.include(utilitiesScript);
|
Script.include(utilitiesScript);
|
||||||
LightSwitch = function() {
|
LightSwitch = function() {
|
||||||
_this = this;
|
_this = this;
|
||||||
this.switchSound = SoundCache.getSound("https://hifi-public.s3.amazonaws.com/sounds/Switches%20and%20sliders/lamp_switch_2.wav");
|
this.switchSound = SoundCache.getSound("http://hifi-production.s3.amazonaws.com/DomainContent/Toybox/lights/lamp_switch_2.wav");
|
||||||
};
|
};
|
||||||
|
|
||||||
LightSwitch.prototype = {
|
LightSwitch.prototype = {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
var PLAYLIST_URL = "https://spreadsheets.google.com/feeds/cells/1x-ceGPGHldkHadARABFWfujLPTOWzXJPhrf2bTwg2cQ/od6/public/basic?alt=json";
|
var PLAYLIST_URL = "https://spreadsheets.google.com/feeds/cells/1x-ceGPGHldkHadARABFWfujLPTOWzXJPhrf2bTwg2cQ/od6/public/basic?alt=json";
|
||||||
var SONG_VOLUME = 0.1;
|
var SONG_VOLUME = 0.1;
|
||||||
var HEADPHONES_ATTACHMENT = {
|
var HEADPHONES_ATTACHMENT = {
|
||||||
modelURL: "https://s3.amazonaws.com/hifi-public/brad/musicplayer/headphones2-v2.fbx",
|
modelURL: "http://hifi-production.s3.amazonaws.com/DomainContent/Toybox/musicPlayer/headphones2-v2.fbx",
|
||||||
jointName: "Head",
|
jointName: "Head",
|
||||||
translation: {"x": 0, "y": 0.19, "z": 0.06},
|
translation: {"x": 0, "y": 0.19, "z": 0.06},
|
||||||
rotation: {"x":0,"y":0.7071067690849304,"z":0.7071067690849304,"w":0},
|
rotation: {"x":0,"y":0.7071067690849304,"z":0.7071067690849304,"w":0},
|
||||||
|
|
Loading…
Reference in a new issue