How to implement physical effect, perspective effect on Android
- by asedra_le
I'm researching about 2D game for Android to implement an Android Game Project. My project looks nearly like PaperToss. Instance of throwing a page, my game will throw a coin. Suppose that I have a coin put in three-dimensional that have coordinates at A(x,y,z). I throw that point ahead, after 1/100 second, that coin move from A(x,y,z) to A'(x',y',z'). By this way, I have two problems need to solve.
Determine the formulas can be used to compute the coordinates of the coin at time t.
This problem is under-researching. I have no idea to solve this problem.
Mapping three-dimensional points to a two-dimensional and use those new coordinates (a two-dimensional coordinates) to draw our coin on screen. I have found two solutions for this problem: Orthographic projection & Perspective projection
However, my old friend said that OpenGL supports to solve problems like my problems. Any body have experiences about my problems?
Help me please :)
Thank for reading my question.