| @@ -1285,6 +1285,21 @@ const attributionData = { | |||||
| "maurizio-barabani" | "maurizio-barabani" | ||||
| ] | ] | ||||
| }, | }, | ||||
| { | |||||
| prefix: "./media/clothing/Shoes/", | |||||
| files: [ | |||||
| { name: "Vans-Front.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" }, | |||||
| { name: "Vans-Front Corner.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" }, | |||||
| { name: "Vans-Side.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" }, | |||||
| { name: "Vans-Back Corner.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" }, | |||||
| { name: "Vans-Back.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" }, | |||||
| { name: "Vans-Bottom.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" }, | |||||
| { name: "Vans-Top.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" }, | |||||
| ], | |||||
| authors: [ | |||||
| "powwow1" | |||||
| ] | |||||
| }, | |||||
| { | { | ||||
| prefix: "./media/characters/abbott-absol/", | prefix: "./media/characters/abbott-absol/", | ||||
| files: [ | files: [ | ||||
| @@ -21317,6 +21332,10 @@ const attributionData = { | |||||
| "name": "Maurizio Barabani", | "name": "Maurizio Barabani", | ||||
| "url": "https://www.cgtrader.com/maurizio-barabani" | "url": "https://www.cgtrader.com/maurizio-barabani" | ||||
| }, | }, | ||||
| "powwow1": { | |||||
| "name": "powwow1", | |||||
| "url": "https://www.cgtrader.com/powwow1" | |||||
| }, | |||||
| } | } | ||||
| } | } | ||||
| @@ -17,6 +17,21 @@ function makeClothing() { | |||||
| ] | ] | ||||
| const dataShoes = [ | |||||
| { | |||||
| name: "Vans", | |||||
| sides: { | |||||
| "Front": { height: math.unit(0.1756718009710312, "meters") }, | |||||
| "Front Corner": { height: math.unit(0.1756718009710312, "meters") }, | |||||
| "Side": { height: math.unit(0.1756718009710312, "meters") }, | |||||
| "Back Corner": { height: math.unit(0.1756718009710312, "meters") }, | |||||
| "Back": { height: math.unit(0.1756718009710312, "meters") }, | |||||
| "Bottom": { height: math.unit(0.4387904107570648, "meters") }, | |||||
| "Top": { height: math.unit(0.4387904107570648, "meters") } | |||||
| } | |||||
| } | |||||
| ] | |||||
| results.push({ | results.push({ | ||||
| name: "Boots", | name: "Boots", | ||||
| constructor: () => makeAutoVehicleGroup( | constructor: () => makeAutoVehicleGroup( | ||||
| @@ -26,6 +41,15 @@ function makeClothing() { | |||||
| ) | ) | ||||
| }) | }) | ||||
| results.push({ | |||||
| name: "Shoes", | |||||
| constructor: () => makeAutoVehicleGroup( | |||||
| dataShoes, | |||||
| "Shoes", | |||||
| "clothing" | |||||
| ) | |||||
| }) | |||||
| results.sort((b1, b2) => { | results.sort((b1, b2) => { | ||||
| e1 = b1.constructor(); | e1 = b1.constructor(); | ||||
| e2 = b2.constructor(); | e2 = b2.constructor(); | ||||
| @@ -47,16 +47,6 @@ function makeObject(name, viewInfo) { | |||||
| return makeEntity({ name: name }, views); | return makeEntity({ name: name }, views); | ||||
| } | } | ||||
| SHOE_REFERENCE = 60 | |||||
| function addShoeView(object, name, points) { | |||||
| object[name] = { | |||||
| height: math.unit(points / SHOE_REFERENCE, "inches"), | |||||
| image: { source: "./media/objects/shoes/shoe_" + name + ".svg" }, | |||||
| name: name.replace(/-/g, " ").replace(/\b\w/g, x => x.toUpperCase()), | |||||
| rename: true | |||||
| } | |||||
| } | |||||
| function makeHeight(info, category, prefix = "", type = "objects", rename = true) { | function makeHeight(info, category, prefix = "", type = "objects", rename = true) { | ||||
| const views = {}; | const views = {}; | ||||
| @@ -154,27 +144,6 @@ function makeHeightWeightSphere(info, category, prefix = "", type = "objects") { | |||||
| } | } | ||||
| } | } | ||||
| function makeShoes() { | |||||
| const views = {}; | |||||
| [ | |||||
| ["flip-flops", 154.239], | |||||
| ["knee-boots", 841.827], | |||||
| ["trainers", 260.607], | |||||
| ["stilettos", 418.839] | |||||
| ].forEach(shoe => { | |||||
| addShoeView(views, shoe[0], shoe[1]) | |||||
| }); | |||||
| return { | |||||
| name: "Shoes", | |||||
| constructor: () => makeObject( | |||||
| "Shoes", | |||||
| views | |||||
| ) | |||||
| } | |||||
| } | |||||
| function makeObjects() { | function makeObjects() { | ||||
| const results = []; | const results = []; | ||||