mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
cleanup
This commit is contained in:
parent
9a49504c56
commit
eca75ba66d
4 changed files with 8 additions and 6 deletions
|
@ -117,9 +117,7 @@
|
||||||
this.arrowNotchSound = SoundCache.getSound(NOTCH_ARROW_SOUND_URL);
|
this.arrowNotchSound = SoundCache.getSound(NOTCH_ARROW_SOUND_URL);
|
||||||
var userData = Entities.getEntityProperties(this.entityID).userData;
|
var userData = Entities.getEntityProperties(this.entityID).userData;
|
||||||
this.userData = JSON.parse(userData);
|
this.userData = JSON.parse(userData);
|
||||||
print('THIS USERDATA::: ' + userData)
|
|
||||||
this.preNotchString = this.userData.bowKey.preNotchString;
|
this.preNotchString = this.userData.bowKey.preNotchString;
|
||||||
print('PRE NOTCH STRING:::' + this.preNotchString)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
unload: function() {
|
unload: function() {
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
|
|
||||||
var utilsPath = Script.resolvePath('../../libraries/utils.js')
|
var utilsPath = Script.resolvePath('../../libraries/utils.js');
|
||||||
Script.include(utilsPath)
|
Script.include(utilsPath);
|
||||||
|
|
||||||
var SCRIPT_URL = Script.resolvePath('bow.js');
|
var SCRIPT_URL = Script.resolvePath('bow.js');
|
||||||
|
|
||||||
|
@ -80,10 +80,12 @@ function makeBow() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
|
|
||||||
bow = Entities.addEntity(bowProperties);
|
bow = Entities.addEntity(bowProperties);
|
||||||
createPreNotchString();
|
createPreNotchString();
|
||||||
}
|
}
|
||||||
|
|
||||||
var preNotchString;
|
var preNotchString;
|
||||||
|
|
||||||
function createPreNotchString() {
|
function createPreNotchString() {
|
||||||
|
|
|
@ -334,6 +334,7 @@
|
||||||
var BOW_ROTATION = Quat.fromPitchYawRollDegrees(-103.05, -178.60, -87.27);
|
var BOW_ROTATION = Quat.fromPitchYawRollDegrees(-103.05, -178.60, -87.27);
|
||||||
var MODEL_URL = "https://hifi-public.s3.amazonaws.com/models/bow/new/bow-deadly.fbx";
|
var MODEL_URL = "https://hifi-public.s3.amazonaws.com/models/bow/new/bow-deadly.fbx";
|
||||||
var COLLISION_HULL_URL = "https://hifi-public.s3.amazonaws.com/models/bow/new/bow_collision_hull.obj";
|
var COLLISION_HULL_URL = "https://hifi-public.s3.amazonaws.com/models/bow/new/bow_collision_hull.obj";
|
||||||
|
|
||||||
var BOW_DIMENSIONS = {
|
var BOW_DIMENSIONS = {
|
||||||
x: 0.04,
|
x: 0.04,
|
||||||
y: 1.3,
|
y: 1.3,
|
||||||
|
|
|
@ -318,6 +318,7 @@ MasterReset = function() {
|
||||||
var BOW_ROTATION = Quat.fromPitchYawRollDegrees(-103.05, -178.60, -87.27);
|
var BOW_ROTATION = Quat.fromPitchYawRollDegrees(-103.05, -178.60, -87.27);
|
||||||
var MODEL_URL = "https://hifi-public.s3.amazonaws.com/models/bow/new/bow-deadly.fbx";
|
var MODEL_URL = "https://hifi-public.s3.amazonaws.com/models/bow/new/bow-deadly.fbx";
|
||||||
var COLLISION_HULL_URL = "https://hifi-public.s3.amazonaws.com/models/bow/new/bow_collision_hull.obj";
|
var COLLISION_HULL_URL = "https://hifi-public.s3.amazonaws.com/models/bow/new/bow_collision_hull.obj";
|
||||||
|
|
||||||
var BOW_DIMENSIONS = {
|
var BOW_DIMENSIONS = {
|
||||||
x: 0.04,
|
x: 0.04,
|
||||||
y: 1.3,
|
y: 1.3,
|
||||||
|
|
Loading…
Reference in a new issue