Sep 12
3. Rotating a Plane in Papervision3D
How to rotate a plane in Papervision3D using the yaw() method
What to watch for:
- Make the plane global
- Add a listener for ‘Event.ENTER_FRAME’ (previously known as onEnterFrame) with a callback to loop3D
- Use the yaw() method of the plane to rotate 5 degrees each time ‘loop3D()’ is called
- Render the camera
- optional: Make the color material ‘double sided’ if you want to see both sides of the plane when it rotates
[flv:http://flexyouras.com/tutorials/Papervision3D/03_Rotating_A_Plane/03_Rotating_A_Plane.flv 612 508]
