I'm not sure, what your actual question is. Just create a cube and a cone, align them in code as you wish and then rotate the view. Rotating the view has no impact on the relation between objects. If you don't want to rotate the view but the actual objects instead, make the cube the parent of the cone and then rotate only the cube.