SHARE
TWEET

Untitled

a guest Jun 19th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //0-2
  2.     this.masses.push(new mass(new cartesian(-30, 15), this));
  3.     this.masses.push(new mass(new cartesian(-15, 15), this));
  4.     this.masses.push(new mass(new cartesian(15, 7), this));
  5.     this.masses.push(new mass(new cartesian(30, 7), this));
  6. //4-9
  7.     this.masses.push(new wheel(new cartesian(-50, 25), this));
  8.     this.masses.push(new wheel(new cartesian(-30, 25), this));
  9.     this.masses.push(new wheel(new cartesian(-10, 25), this));
  10.     this.masses.push(new wheel(new cartesian(10, 25), this));
  11.     this.masses.push(new wheel(new cartesian(30, 25), this));
  12.     this.masses.push(new wheel(new cartesian(50, 25), this));
  13. //springs 1-3
  14.     this.springs.push(new spring(this.masses[0], this.masses[1], this));
  15.     this.springs.push(new spring(this.masses[1], this.masses[2], this));
  16.     this.springs.push(new spring(this.masses[2], this.masses[3], this));
  17.     this.springs.push(new spring(this.masses[3], this.masses[0], this));
  18. //springs 4-9
  19.     this.springs.push(new spring(this.masses[4], this.masses[5], this));
  20.     this.springs.push(new spring(this.masses[5], this.masses[6], this));
  21.     this.springs.push(new spring(this.masses[6], this.masses[7], this));
  22.     this.springs.push(new spring(this.masses[7], this.masses[8], this));
  23.     this.springs.push(new spring(this.masses[8], this.masses[9], this));
  24.     this.springs.push(new spring(this.masses[4], this.masses[9], this));
  25. //springs 12-14
  26.     this.springs.push(new spring(this.masses[0], this.masses[5], this));
  27.     this.springs.push(new spring(this.masses[1], this.masses[6], this));
  28.     this.springs.push(new spring(this.masses[2], this.masses[7], this));
  29.     this.springs.push(new spring(this.masses[3], this.masses[8], this));
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top