I'm trying to get my 2nd object to be directly behind (-distance) my 1st object that has been rotated.
Let's say I have 2 objects:
var object1 = new THREE.Object3D();
object1.position.set(5, 10, 53);
object1.rotateX(1);
object1.rotateY(1.5);
var distance = 20; //place object2 20 units behind object1
var object2 = new THREE.Object3D();
object2.position.set( /*position object2 right behind object1 -distance */);
object2.lookAt(object1);
In this instance, how do I place object2 directly behind object1 which has been rotated?
Visual 2D example. Not to scale
