So if you rotate now,the cube will rotate around its own axis…
Now,if you dont want to rotate this way,
just build the cube starting at -0.5 for exampleas the middle point (or take 0,0,0 as any edge point) and it will rotate around this point…
sorry for the bad drawing,i hope i said everything right…