Turn based strategy on a cube! How to properly rotate actor?

When you place the character in the correct place above the surface, Fire a LineTrace towards the cube, get the hit location of the hit on the cube surface.

use FindLookAtRotation from the centre of your character to the location supplied from the Line Trace.

Failing that get the Hit Normal of the line trace and use that instead.

This would not need to be hardcoded and would work on surfaces that were not 90 degree