I am trying to figure out how to maintain an object's position relative to the camera. Specifically, I want one object to be viewable from all angles using a trackball camera, while another object should always stay in the same position relative to the camera.
For example, I want to overlay a mesh (viewable from all angles) on top of an image (static relative to the trackball camera).
I hope that explanation makes sense.
Thank you for any advice :)
Here is what I currently have:
object.position.copy( camera.position );
object.rotation.copy( camera.rotation );
object.updateMatrix();
EDIT
I have solved the issue:
object.position.copy( camera.position );
object.rotation.copy( camera.rotation );
object.updateMatrix();
object.translateZ( - 10 );