October 2018
Intermediate to advanced
464 pages
15h 17m
English
We're using the Matrix.setRotateM() method to calculate a new rotation matrix based on the angle we pass in. For this example, we're using the system uptime to calculate an angle. We can use whatever method we want to derive an angle, such as a sensor reading or touch events.