In previous chapters, several methods and properties have been introduced to move and rotate objects. We have used the x, y
, and z
properties to set the position of objects and we have discussed the moveForward(), moveBackward(), moveLeft(), moveRight(), moveUp()
, and moveDown()
methods, which move an object in relation to its own axes. We also discussed the lookAt()
method to make an object look at another object.
In many examples, we have set the localRotationX, localRotationY
, and localRotationZ
properties to rotate objects around their own x, y, and z-axis. However, when it comes to rotating objects, Papervision3D has more to offer.