Hello. I'm starting to learn Away3d but can't understand, why
Away3dLite has inverted y axis. It's very strange, because in original
Away3d all works really well.
This is my sample code:
package
{
import away3dlite.containers.View3D
import away3dlite.primitives.Cube6;
import away3dlite.cameras.Camera3D;
import flash.display.Sprite;
[SWF(width="500", height="400", frameRate="60",
backgroundColor="#FFFFFF")]
public class AwayLiteCube extends Sprite
{
public function AwayLiteCube()
{
// create a viewport
var view:View3D = new View3D();
view.x = 250;
view.y = 200;
var camera:Camera3D = new Camera3D;
camera.x = 0;
camera.y = 0;
view.camera = camera;
addChild(view);
camera.z = -300;
var cube:Cube6 = new Cube6();
cube.scaleX = 0.1;
cube.scaleY = 0.1;
cube.scaleZ = 0.1;
cube.y = 20;
cube.x = 0;
view.scene.addChild(cube);
view.render();
}
}
}
I think this code must move cube to the top of the view, but it's move
it to the bottom. If i using original Away3d libs- all works fine and
this code moves object to the top.
To unsubscribe from this group, send email to
away3d-dev+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.