three.js - How to create PlaneGeometry object at some height along z axis? -


i using this:

new three.mesh( new three.planegeometry( 1000, 1000 ), new three.meshbasicmaterial() ); 

to create new plane. how change height along z axis? none of arguments related it.

assuming mesh captured variable this:

var planemesh = new three.mesh(      new three.planegeometry( 1000, 1000 ),      new three.meshbasicmaterial() ); 

then, need move is:

planemesh.position.z += 50; 

also, icemonster correct plane render facing start, depending on use, may want rotate mentioned in comment.


Comments

Popular posts from this blog

Issues changing the value of an element in an array in matlab -

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -