I have a rectangular prism,
I am trying to determine the front side of my prism by specifying the sides:
var materialArray = [];
materialArray.push(new THREE.MeshBasicMaterial( { map: THREE.ImageUtils.loadTexture( 'test/Three.js/images/xpos.png' ) }));
materialArray.push(new THREE.MeshBasicMaterial( { map: THREE.ImageUtils.loadTexture( 'test/Three.js/images/xneg.png' ) }));
materialArray.push(new THREE.MeshBasicMaterial( { map: THREE.ImageUtils.loadTexture( 'test/Three.js/images/ypos.png' ) }));
materialArray.push(new THREE.MeshBasicMaterial( { map: THREE.ImageUtils.loadTexture( 'test/Three.js/images/yneg.png' ) }));
materialArray.push(new THREE.MeshBasicMaterial( { map: THREE.ImageUtils.loadTexture( 'test/Three.js/images/zpos.png' ) }));
materialArray.push(new THREE.MeshBasicMaterial( { map: THREE.ImageUtils.loadTexture( 'test/Three.js/images/zneg.png' ) }));
var PrismMat = new THREE.MeshFaceMaterial(materialArray);
var PrismGeom = new THREE.BoxGeometry( 100*meter, 50*meter, 300*meter, 1, 1, 1, materialArray );
myMesh = new THREE.Mesh( PrismGeom, PrismMat );
scene.add( myMesh );
When using myMesh.lookAt(myTarget)
to point towards a target, the side with texture "zneg.png" (which is intended to be the front) ends up at the back, with the "zpos.png" side facing the target.
How can I designate the front and bottom, or top and back side of my object, for easy rotation?
Thank you.