3D Carousel in Android

后端 未结 1 1950
天涯浪人
天涯浪人 2020-12-02 15:43

I am working on 3D Carousel for android.

I am using this code and the following is my current output.

\

相关标签:
1条回答
  • 2020-12-02 16:31

    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 ...

    0 讨论(0)
提交回复
热议问题