Lines Matching refs:mass
9 function Body(x,y,z,vx,vy,vz,mass){
16 this.mass = mass;
87 var m = b.mass;
110 bodyi.vx -= dx * bodyj.mass * mag;
111 bodyi.vy -= dy * bodyj.mass * mag;
112 bodyi.vz -= dz * bodyj.mass * mag;
114 bodyj.vx += dx * bodyi.mass * mag;
115 bodyj.vy += dy * bodyi.mass * mag;
116 bodyj.vz += dz * bodyi.mass * mag;
136 e += 0.5 * bodyi.mass *
148 e -= (bodyi.mass * bodyj.mass) / distance;