Merge pull request #10728 from thoys/cooking/bake-shortBow

bake shortbow
This commit is contained in:
Ryan Huffman 2017-06-18 16:39:33 -07:00 committed by GitHub
commit fefedd63e4
27 changed files with 12 additions and 12 deletions

View file

@ -103,7 +103,7 @@ function getControllerLocation(controllerHand) {
const STRING_PULL_SOUND_URL = Script.resolvePath('Bow_draw.1.L.wav'); const STRING_PULL_SOUND_URL = Script.resolvePath('Bow_draw.1.L.wav');
const ARROW_HIT_SOUND_URL = Script.resolvePath('Arrow_impact1.L.wav'); const ARROW_HIT_SOUND_URL = Script.resolvePath('Arrow_impact1.L.wav');
const ARROW_MODEL_URL = Script.resolvePath('arrow.fbx'); const ARROW_MODEL_URL = Script.resolvePath('models/arrow.baked.fbx');
const ARROW_DIMENSIONS = { const ARROW_DIMENSIONS = {
x: 0.20, x: 0.20,
y: 0.19, y: 0.19,

View file

@ -37,7 +37,7 @@ var userData = {
var id = Entities.addEntity({ var id = Entities.addEntity({
"position": MyAvatar.position, "position": MyAvatar.position,
"collisionsWillMove": 1, "collisionsWillMove": 1,
"compoundShapeURL": Script.resolvePath("bow_collision_hull.obj"), "compoundShapeURL": Script.resolvePath("models/bow_collision_hull.obj"),
"created": "2016-09-01T23:57:55Z", "created": "2016-09-01T23:57:55Z",
"dimensions": { "dimensions": {
"x": 0.039999999105930328, "x": 0.039999999105930328,
@ -50,7 +50,7 @@ var id = Entities.addEntity({
"y": -9.8, "y": -9.8,
"z": 0 "z": 0
}, },
"modelURL": Script.resolvePath("bow-deadly.fbx"), "modelURL": Script.resolvePath("models/bow-deadly.baked.fbx"),
"name": "Hifi-Bow", "name": "Hifi-Bow",
"rotation": { "rotation": {
"w": 0.9718012809753418, "w": 0.9718012809753418,

View file

@ -114,7 +114,7 @@ SHORTBOW_ENTITIES =
"id": "{04288f77-64df-4323-ac38-9c1960a393a5}", "id": "{04288f77-64df-4323-ac38-9c1960a393a5}",
"lastEdited": 1487893058314990, "lastEdited": 1487893058314990,
"lastEditedBy": "{fce8028a-4bac-43e8-96ff-4c7286ea4ab3}", "lastEditedBy": "{fce8028a-4bac-43e8-96ff-4c7286ea4ab3}",
"modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-button.fbx", "modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-button.baked.fbx",
"name": "SB.StartButton", "name": "SB.StartButton",
"owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}",
"parentID": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}", "parentID": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}",
@ -758,7 +758,7 @@ SHORTBOW_ENTITIES =
"id": "{d4c8f577-944d-4d50-ac85-e56387c0ef0a}", "id": "{d4c8f577-944d-4d50-ac85-e56387c0ef0a}",
"lastEdited": 1487892440231278, "lastEdited": 1487892440231278,
"lastEditedBy": "{91f193dd-829a-4b33-ab27-e9a26160634a}", "lastEditedBy": "{91f193dd-829a-4b33-ab27-e9a26160634a}",
"modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-platform.fbx", "modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-platform.baked.fbx",
"name": "SB.Platform", "name": "SB.Platform",
"owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}",
"parentID": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}", "parentID": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}",
@ -794,7 +794,7 @@ SHORTBOW_ENTITIES =
"id": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}", "id": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}",
"lastEdited": 1487892440231832, "lastEdited": 1487892440231832,
"lastEditedBy": "{91f193dd-829a-4b33-ab27-e9a26160634a}", "lastEditedBy": "{91f193dd-829a-4b33-ab27-e9a26160634a}",
"modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-scoreboard.fbx", "modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-scoreboard.baked.fbx",
"name": "SB.Scoreboard", "name": "SB.Scoreboard",
"owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}",
"queryAACube": { "queryAACube": {

View file

@ -96,7 +96,7 @@
"id": "{04288f77-64df-4323-ac38-9c1960a393a5}", "id": "{04288f77-64df-4323-ac38-9c1960a393a5}",
"lastEdited": 1487893058314990, "lastEdited": 1487893058314990,
"lastEditedBy": "{fce8028a-4bac-43e8-96ff-4c7286ea4ab3}", "lastEditedBy": "{fce8028a-4bac-43e8-96ff-4c7286ea4ab3}",
"modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-button.fbx", "modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-button.baked.fbx",
"name": "SB.StartButton", "name": "SB.StartButton",
"owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}",
"parentID": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}", "parentID": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}",
@ -740,7 +740,7 @@
"id": "{d4c8f577-944d-4d50-ac85-e56387c0ef0a}", "id": "{d4c8f577-944d-4d50-ac85-e56387c0ef0a}",
"lastEdited": 1487892440231278, "lastEdited": 1487892440231278,
"lastEditedBy": "{91f193dd-829a-4b33-ab27-e9a26160634a}", "lastEditedBy": "{91f193dd-829a-4b33-ab27-e9a26160634a}",
"modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-platform.fbx", "modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-platform.baked.fbx",
"name": "SB.Platform", "name": "SB.Platform",
"owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}",
"parentID": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}", "parentID": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}",
@ -776,7 +776,7 @@
"id": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}", "id": "{0cd1f1f7-53b9-4c15-bf25-42c0760d16f0}",
"lastEdited": 1487892440231832, "lastEdited": 1487892440231832,
"lastEditedBy": "{91f193dd-829a-4b33-ab27-e9a26160634a}", "lastEditedBy": "{91f193dd-829a-4b33-ab27-e9a26160634a}",
"modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-scoreboard.fbx", "modelURL": "file:///c:/Users/ryanh/dev/hifi/unpublishedScripts/marketplace/shortbow/models/shortbow-scoreboard.baked.fbx",
"name": "SB.Scoreboard", "name": "SB.Scoreboard",
"owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}",
"queryAACube": { "queryAACube": {

View file

@ -131,7 +131,7 @@ var baseEnemyProperties = {
}, },
"lifetime": 30, "lifetime": 30,
"id": "{ed8f7339-8bbd-4750-968e-c3ceb9d64721}", "id": "{ed8f7339-8bbd-4750-968e-c3ceb9d64721}",
"modelURL": Script.resolvePath("models/Amber.fbx"), "modelURL": Script.resolvePath("models/Amber.baked.fbx"),
"owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}",
"queryAACube": { "queryAACube": {
"scale": 1.0999215841293335, "scale": 1.0999215841293335,
@ -290,7 +290,7 @@ ShortbowGameManager.prototype = {
"position": props.position, "position": props.position,
"rotation": props.rotation, "rotation": props.rotation,
"collisionsWillMove": 1, "collisionsWillMove": 1,
"compoundShapeURL": Script.resolvePath("bow/bow_collision_hull.obj"), "compoundShapeURL": Script.resolvePath("bow/models/bow_collision_hull.obj"),
"created": "2016-09-01T23:57:55Z", "created": "2016-09-01T23:57:55Z",
"dimensions": { "dimensions": {
"x": 0.039999999105930328, "x": 0.039999999105930328,
@ -303,7 +303,7 @@ ShortbowGameManager.prototype = {
"y": -9.8, "y": -9.8,
"z": 0 "z": 0
}, },
"modelURL": Script.resolvePath("bow/bow-deadly.fbx"), "modelURL": Script.resolvePath("bow/models/bow-deadly.baked.fbx"),
"name": "WG.Hifi-Bow", "name": "WG.Hifi-Bow",
"script": Script.resolvePath("bow/bow.js"), "script": Script.resolvePath("bow/bow.js"),
"shapeType": "compound", "shapeType": "compound",