|
@@ -0,0 +1,17 @@
|
|
|
+const Vector3 = require("./Vector3");
|
|
|
+
|
|
|
+module.exports = class Moon {
|
|
|
+ /**
|
|
|
+ * @param {Vector3} position The starting position of the moon
|
|
|
+ */
|
|
|
+ constructor(position) {
|
|
|
+ /**
|
|
|
+ * The position of the moon in space
|
|
|
+ */
|
|
|
+ this.position = position;
|
|
|
+ /**
|
|
|
+ * The current velocity of the moon
|
|
|
+ */
|
|
|
+ this.velocity = new Vector3(0, 0, 0);
|
|
|
+ }
|
|
|
+};
|