cannot change position of Mesh

Software: Away3D 4.x

seti3d, Newbie
Posted: 18 March 2013 12:26 PM   Total Posts: 19

When I create a Mesh and want to place it according to the camera position the Mesh position doesn’t change:

var _winfarbe:ColorMaterial = new ColorMaterial(0x000000);
_win=new Mesh(new CubeGeometry(), _winfarbe);
_win.rotationX 0;
_win.rotationZ 0;
_win.rotationY camera1Controller.panAngle;

_win.position = new Vector3D
(camera1.position.x-1000,camera1.position.ycamera1.position.z);
.... 

It doesn’t matter if I sub 1000 or add 1000, put it to x or z position,
the position of the mesh won’t change.
Any idea what I’m doing wrong?

   

aeki, Member
Posted: 18 March 2013 02:33 PM   Total Posts: 73   [ # 1 ]

try

_win.camera1.position.x-1000
_win
.=camera1.position.y
_win
.=camera1.position.
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X