I\'m trying to put an object in front of the camera, but have not been able to.
I\'m using the FlyControls what moves the camera, and I now want to put an object in fron
I'm using three.js r88 and have worked out a solution starting from what Kaspar Lee posted.
function updatePositionForCamera(camera) {
// fixed distance from camera to the object
var dist = 100;
var cwd = new THREE.Vector3();
camera.getWorldDirection(cwd);
cwd.multiplyScalar(dist);
cwd.add(camera.position);
myObject3D.position.set(cwd.x, cwd.y, cwd.z);
myObject3D.setRotationFromQuaternion(camera.quaternion);
}