the width of the plane is set to 800 pixels:
geometry = new THREE.PlaneGeometry( 800, 20, 0, 0 );
material = new THREE.MeshBasicMaterial({
color:0xFFFFFF,
side:THREE.DoubleSide
});
mesh = new THREE.Mesh(geometry, material);
mesh.updateMatrixWorld();
scene.add(mesh);
when I attempt to modify it, it distorts the coordinate system in unexpected ways
mesh.geometry.vertices[0].setY(0);
mesh.geometry.vertices[0].setX(0);
mesh.geometry.vertices[0].setZ(0);
mesh.geometry.vertices[1].setY(0);
mesh.geometry.vertices[1].setX(800);
mesh.geometry.vertices[1].setZ(0);
mesh.geometry.vertices[2].setY(20);
mesh.geometry.vertices[2].setX(0);
mesh.geometry.vertices[2].setZ(0);
mesh.geometry.vertices[3].setY(20);
mesh.geometry.vertices[3].setX(800);
mesh.geometry.vertices[3].setZ(0);
mesh.geometry.verticesNeedUpdate = true;
Is there a way to align the geometry object's coordinate system with that of the camera frame?
0 pixels equals 0 units