Moon.js 406 B

1234567891011121314151617
  1. const Vector3 = require("./Vector3");
  2. module.exports = class Moon {
  3. /**
  4. * @param {Vector3} position The starting position of the moon
  5. */
  6. constructor(position) {
  7. /**
  8. * The position of the moon in space
  9. */
  10. this.position = position;
  11. /**
  12. * The current velocity of the moon
  13. */
  14. this.velocity = new Vector3(0, 0, 0);
  15. }
  16. };