Skip to content

Instantly share code, notes, and snippets.

@anuraghazra
Last active May 16, 2019 13:05
Show Gist options
  • Save anuraghazra/8ab9e96c4ab985e28b32425f7df7c999 to your computer and use it in GitHub Desktop.
Save anuraghazra/8ab9e96c4ab985e28b32425f7df7c999 to your computer and use it in GitHub Desktop.
class Dot {
constructor(x, y) {
this.pos = new Vector(x, y);
this.oldpos = new Vector(x, y);
this.friction = 0.97;
this.groundFriction = 0.7;
this.gravity = new Vector(0, 1);
this.radius = 5;
this.color = '#e62a4f';
this.mass = 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment