0
\$\begingroup\$

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

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

1 Answer 1

3
\$\begingroup\$

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.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .