public void SetBlockAt(int row, int col, int stack, Block b) { blocks[(int)MathHelper.Clamp(row, 0, width-1), (int)MathHelper.Clamp(col, 0, height-1), (int)MathHelper.Clamp(stack, 0, depth-1)] = b; }
public static Matrix GetInverseRotationMatrix(Block b) { return inverseRotations[b.RotationAxis, b.Rotation]; }
public static Matrix GetRotationMatrix(Block b) { return rotations[b.RotationAxis, b.Rotation]; }
public static RigidBody3D GetBlockBody(Block b) { return blockBodies[(int)b.Type]; }