for (int i = 0; i < 65536; i++) { /// heightmap x,y must be swapped for Ode (should fix ODE, but for now...) int x = i & 0xff; int y = i >> 8; int ii = x * 256 + y; this._heightmap[i] = (double)heightMap[ii]; /// this._heightmap[i] = (double)heightMap[i];