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.

Here is a screenshot.

Can someone explaing the mathematics of such an animation

  • 2
    \$\begingroup\$ I believe those are just animated sprites. easy to do those renders in any model render today. \$\endgroup\$ – Tordin Jun 4 '14 at 7:29

There is no need to create an actual 3D object within your game to achieve that.

Simply make an animation of a cube rotating and render that. It's simple! LibGDX has a short tutorial written about it.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.