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
Post a Comment