Currently, I have an object that is smoothly tweening towards the front of the camera by using WestLangleys solution from a different question:
var pLocal = new THREE.Vector3( 0, 0, -10 );
var pWorld = pLocal.applyMatrix4( camera.matrixWorld );
var target = pWorld.sub( camera.position ).normalize();
var tweenMove = new TWEEN.Tween(object.position).to(target, 2000)
However, I am facing a challenge where I need the object to maintain a specific distance from the camera. Adjusting the z value to -10 doesn't seem to have any effect as the object disappears when the tween completes (it gets too close to the camera).
The camera's near value is set to 1.
Do you have any suggestions or ideas to address this issue?