37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
// DaegeumSpawner.js
|
|
//
|
|
// Copyright 2018 High Fidelity, Inc.
|
|
// Created by Robin Wilson 7/5/2018
|
|
//
|
|
// Utilizes InstrumentSpawner.js constructor to create Daegeum that spawns clonable playable daegeums when held.
|
|
//
|
|
// 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 spawner = Script.require(Script.resolvePath("../InstrumentSpawner.js"));
|
|
var InstrumentSpawner = spawner.instrumentSpawner;
|
|
|
|
var NAME = "Daegeum";
|
|
var MODEL_URL = "https://hifi-content.s3.amazonaws.com/jimi/environment/2018_Korea/daegeum.fbx";
|
|
var DIMENSIONS = {
|
|
x: 0.0495,
|
|
y: 1.0530,
|
|
z: 0.0522
|
|
};
|
|
var CLONE_LIFETIME = 17;
|
|
var SCRIPT_URL = Script.resolvePath("DaegeumClone.js");
|
|
|
|
var daegeum = {
|
|
name: NAME,
|
|
modelURL: MODEL_URL,
|
|
dimensions: DIMENSIONS,
|
|
cloneLifetime: CLONE_LIFETIME,
|
|
scriptURL: SCRIPT_URL
|
|
};
|
|
|
|
var daegeumSpawner = new InstrumentSpawner(daegeum);
|
|
daegeumSpawner.createSpawner();
|
|
|
|
})();
|