public void SetHeight(int h) { Height = h; for (var j = 0; j < Width; j++) { CollisionMap[j] = CollisionMap[j].Slice(0, h); } ClearCache(); }