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.y, camera1.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?