Tumbling a cube

Hi,

I am new to unity and the project that I am working on requires a cube(player) to tumble sideways depending on the key pressed (up, down, left or right)

I found this game: Bloxorz | Games

The way Cube behaves in this game is exactly what i have in mind.

Any starting directions will be awesome.

1 Answer

1

There was already a similar question like this one. Note that my solution is designed for a cube (same edge length in all directions). It could of course be modified to take the scale into account which is needed to find the rotation axis.

thanks a lot for the info.

–

Thanks a lot :)

–