I know that a cube is actually a 3d shape , but i have some other problem over here.
I have been doing 2D Game dev using libgdx but have never touched 3D rendering. Now what I want in my 2D game is that instead of coins I make my player collect magical cubes. But those cubes need to be spinning on one Diagonal, same can be seen in popular game Vector.
Can someone explaing the mathematics of such an animation