void Fall() { //apply half velocity - http://www.niksula.hut.fi/~hkankaan/Homepages/gravity.html for (int i = 0; i < 4; ++i) { vel[i] -= grav * Time.fixedDeltaTime / 2; } //apply position changes for (int i = 0; i < 4; ++i) { if (lat[i]) { pos[i] = below.pos[i]; } else { pos[i] += vel[i] * Time.fixedDeltaTime; } } mesh.TransformBox(pos); //apply half velocity for (int i = 0; i < 4; ++i) { vel[i] -= grav * Time.fixedDeltaTime / 2; } }