I am just learning to use the camera on away3D.
What happens is that I place 3 objects on screen and move the camera
left and right.
The problem is that when i move the camera the objects move on each
other as well.
If I move the camera left the cube in the middle appears to move on
the 1st cube and moving right is the same.


scene = new Scene3D();

                        cam = new Camera3D();
                        cam.z= -1000; // make sure it's positioned away from 
the default
0,0,0 coordinate


                        view = new View3D({camera:cam,x:250,y:200});
                        addChild(view);

cube2=new Cube({material:"blue#",x:0,y:-150,z:50,width:200,height:
20,depth:2000});
                        view.scene.addChild(cube2);


                        cube= new Cube({material:"red", depth:200, width:100, 
height:300,x:
220,y:-150,z:200});
                        view.scene.addChild(cube);

                        cube3=new 
Cube({material:"blue#",x:400,y:-150,z:50,width:200,height:
20,depth:2000});
                        view.scene.addChild(cube3);

.....

if (dict[Keyboard.LEFT ]==true) {
                        cam.moveLeft(10);
                        }// Left

                        if (dict[Keyboard.RIGHT ]==true) {
                                cam.moveRight(10);
                        }

Reply via email to