Browse Source

Add some sports balls - golf, tennis, base, volley

tags/v0.1.0
Fen Dweller 5 years ago
parent
commit
b4c8a14dfc
1 changed files with 37 additions and 0 deletions
  1. +37
    -0
      presets/objects.js

+ 37
- 0
presets/objects.js View File

@@ -205,6 +205,43 @@ function makeObjects() {
}
)
});

results.push({
name: "Balls",
constructor: () => makeObject(
"Balls",
{
golf: {
height: math.unit(1.62, "inches"),
mass: math.unit(45, "g"),
image: { source: "./media/objects/circle.svg" },
name: "Golfball",
rename: true
},
tennis: {
height: math.unit(2.6, "inches"),
mass: math.unit(57, "g"),
image: { source: "./media/objects/circle.svg" },
name: "Tennisball",
rename: true
},
baseball: {
height: math.unit(2.9, "inches"),
mass: math.unit(145, "g"),
image: { source: "./media/objects/circle.svg" },
name: "Baseball",
rename: true
},
volleyball: {
height: math.unit(8, "inches"),
mass: math.unit(270, "g"),
image: { source: "./media/objects/circle.svg" },
name: "Volleyball",
rename: true
}
}
)
});
results.sort((b1, b2) => {
e1 = b1.constructor();


Loading…
Cancel
Save