mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 03:52:45 +02:00
Add Amber.fbx to shortbow/models
This commit is contained in:
parent
8c088336e8
commit
5096993851
3 changed files with 4 additions and 11 deletions
BIN
unpublishedScripts/marketplace/shortbow/models/Amber.fbx
Normal file
BIN
unpublishedScripts/marketplace/shortbow/models/Amber.fbx
Normal file
Binary file not shown.
|
@ -102,7 +102,7 @@ var baseEnemyProperties = {
|
|||
},
|
||||
lifetime: 180,
|
||||
"id": "{ed8f7339-8bbd-4750-968e-c3ceb9d64721}",
|
||||
"modelURL": "http://hifi-content.s3.amazonaws.com/Examples%20Content/production/marblecollection/Amber.fbx?2",
|
||||
"modelURL": Script.resolvePath("models/Amber.fbx"),
|
||||
"name": "SB.Enemy",
|
||||
"owningAvatarID": "{00000000-0000-0000-0000-000000000000}",
|
||||
"queryAACube": {
|
||||
|
|
|
@ -62,17 +62,10 @@ function getTemplate(name) {
|
|||
return null;
|
||||
}
|
||||
|
||||
// Cleanup Shortbow template data
|
||||
var scoreboardTemplate = getTemplate('SB.Scoreboard');
|
||||
Vec3.print("Scoreboard:", scoreboardTemplate.position);
|
||||
for (var i = 0; i < TEMPLATES.length; ++i) {
|
||||
if (TEMPLATES[i].name !== scoreboardTemplate.name) {
|
||||
var template = TEMPLATES[i];
|
||||
|
||||
// Fixup position
|
||||
template.localPosition = Vec3.subtract(template.position, scoreboardTemplate.position);
|
||||
delete template.position;
|
||||
}
|
||||
// Cleanup Shortbow template data
|
||||
for (var i = 0; i < TEMPLATES.length; ++i) {
|
||||
var template = TEMPLATES[i];
|
||||
|
||||
// Fixup model url
|
||||
if (template.type == "Model") {
|
||||
|
|
Loading…
Reference in a new issue