Hello
I am trying to implement a first person camera where the player model moves relevant to which direction the camera is facing. Saw lots of topics on this but I couldn’t find a solution to be able to implement this correctly for first person. I want to make it so the camera is in the players eyes and the model moves according to the camera.
Below is what I have to rotate the player model relevant to the camera direction which works but has some issues.
this.playerModel.setLocalEulerAngles(this.camera.getLocalEulerAngles());
The first issue is when you move the mouse up and down the model with rotate up and down too ( i do not know how to explain this ). Below is a video of what I mean.
So instead of the player model fully moving up/down I want to achieve just the body/arms moving up and down to simulate as if the player is looking up and down.
The second issue I got was the rotation of the model. The rotation of the model is for some reason facing towards the camera and not away from it even after I change the rotation of the model it always faces toward the camera. For reference I just got some free model and animation from mixamo.
My brain is fried trying to figure this out all day so I am asking the forum for help