//Initiate all the connections for this mass public int makeLattice() { cMass tm; int count = 0; int i; int[,] aa = SoftBody.allAxis; for (i = 0; i < SoftBody.maxCon; i++) { tm = myBody.findMass(px + aa[i, 0], py + aa[i, 1], pz + aa[i, 2]); if (tm != null) { _cons[i] = new cmConnect(this, i, tm); count++; } else { _cons[i] = null; } } return(count); }