Reputation: 75
I am using this:
new THREE.Mesh( new THREE.PlaneGeometry( 1000, 1000 ), new THREE.MeshBasicMaterial() );
To create a new plane. How to change the height along z axis? None of the arguments are related to it.
Upvotes: 2
Views: 4883
Reputation: 6275
You can rotate the mesh. Try something like this:
mesh.rotation.set(-Math.PI/2, Math.PI/2000, Math.PI);
Upvotes: 2
Reputation: 2198
Assuming your mesh is captured as a variable like this:
var planeMesh = new THREE.Mesh(
new THREE.PlaneGeometry( 1000, 1000 ),
new THREE.MeshBasicMaterial() );
Then, all you need to do just to move it back is:
planeMesh.position.z += 50;
Also, Icemonster is correct a plane will render facing you to start, thus depending on your use, you may want to rotate it as mentioned in the comment.
Upvotes: 2