When I have a moving object controlled by code such as:
dx = [not important];
dy = [not important];
dz = [not important];
d = new THREE.Vector3(dx, dy, dz);
mesh.postion.add(d);
How can I ensure that my mesh is facing the direction it's moving in? I've attempted:
mesh.lookAt(d); // without success
mesh.lookAt(copyOfMeshPosition.add(d)) // without success
as well as adjusting the mesh.up to (1,0,0), (0,1,0), and (0,0,1).