3D Carousel in Android

You are using a function called Calculate3DPosition which calculates X, Y, Z positions from the angle and then those are used in a matrix.translate call.

What you need is actually much simpler – you just need to call matrix.rotate with the angle. It might look surprisingly easy when you’ve finished, but honestly, the only complexity in the 3D code you have copied is from attempting to keep everything facing the user instead of letting it rotate …

Leave a Comment