| @@ -14,7 +14,7 @@ function makeObject(name, viewInfo) { | |||||
| } | } | ||||
| }, | }, | ||||
| image: value.image, | image: value.image, | ||||
| name: "Object" | |||||
| name: value.name | |||||
| } | } | ||||
| if (value.mass) { | if (value.mass) { | ||||
| @@ -42,7 +42,8 @@ function makeObjects() { | |||||
| front: { | front: { | ||||
| height: math.unit(4.83, "inches"), | height: math.unit(4.83, "inches"), | ||||
| mass: math.unit(15, "grams"), | mass: math.unit(15, "grams"), | ||||
| image: { source: "./media/objects/soda-can.svg" } | |||||
| image: { source: "./media/objects/soda-can.svg" }, | |||||
| name: "Side" | |||||
| } | } | ||||
| } | } | ||||
| ) | ) | ||||
| @@ -55,11 +56,13 @@ function makeObjects() { | |||||
| { | { | ||||
| side: { | side: { | ||||
| height: math.unit(1.5, "inches"), | height: math.unit(1.5, "inches"), | ||||
| image: { source: "./media/objects/sewing-pin.svg" } | |||||
| image: { source: "./media/objects/sewing-pin.svg" }, | |||||
| name: "Side" | |||||
| }, | }, | ||||
| top: { | top: { | ||||
| height: math.unit(2, "millimeters"), | height: math.unit(2, "millimeters"), | ||||
| image: { source: "./media/objects/pin-head.svg" } | |||||
| image: { source: "./media/objects/pin-head.svg" }, | |||||
| name: "Head" | |||||
| } | } | ||||
| } | } | ||||
| ) | ) | ||||