I am currently working on a FPS game using three.js. My goal is to lock the weapon at the bottom right corner of the screen, giving it a realistic feel like in other FPS games.
After some initial experimentation, I have implemented a proof of concept that involves copying the user's position and adding an offset:
fpsweapon.position.copy( user.position );
fpsweapon.position.y = user.position.y + 15;
While this method works, I can't help but think there might be a more efficient way to achieve the same result. Has anyone else tackled this problem before?
I'm open to suggestions or resources on how to optimize this process for a smoother gaming experience.
Thank you for your help!