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 front of it. How can I do this? I've tried many different ways, but I did not succeed.
Thanks
Have you tried making your object a child of your camera and then translating it forward?
camera.add(nanobot);
nanobot.position.set(0,0,-100);
The above places the nanobot permanently 100 units in front of the camera... and that's where it will stay until you do:
camera.remove(nanobot);
...at which point it should just stay where it is in global space until you move it using some other method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With