Trying some tutorials about Papervision3d. Found a problem when trying to rotate the plane.
Could someone please help me on this one?
the AS conde below:
package {
import flash.events.Event;
import org.papervision3d.materials.ColorMaterial;
import org.papervision3d.objects.primitives.Plane;
import org.papervision3d.view.BasicView;
public class BitmapAssetMaterialExample extends BasicView
{
public function BitmapAssetMaterialExample()
{
stage.frameRate = 40;
init();
startRendering();
}
private function init():void
{
var material:ColorMaterial = new ColorMaterial(0x66ff00);
var plane:Plane = new Plane(material,150,93,2,2);
scene.addChild(plane);
}
override protected function onRenderTick(e:Event=null):void
{
super.onRenderTick();
}
}
}