Aula
4: Rotação de Objetos
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 tutorials 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. |