Lesson 4 Rotation

原创文章,转载请注明: 转载自慢慢的回味

本文链接地址: Lesson 4 Rotation

Moving right along. In this tutorial I’ll teach you how to rotate both the triangle and the quad. The triangle will rotate on the Y axis, and the quad will rotate on the X axis. This tutorial will introduce 2 variables. rtri is used to store the angle of the triangle, and rquad will store the angle of the quad.  

It’s easy to create a scene made up of polygons. Adding motion to those object makes the scene come alive. In later lessons I’ll teach you how to rotate an object around a point on the screen causing the object to move around the screen rather than spin on its axis. 本作品采用知识共享署名 4.0 国际许可协议进行许可。

发表回复