I’m trying to build a 3rd person multiplayer online game, and for the setup I have the camera has to remain a child object of the player character. However, the camera is meant to have its own rotation based on the mouse, not rotate along with the player character. In my current setup, moving the player left or right in gameplay causes the camera to snap 90 degrees in a really jarring way, but for the movement to feel right, the character must be able to turn on a dime.
’
I’m pretty stuck for the moment, is there any way to have the camera ignore the rotation of the parent object while still retaining its own rotation? I came across simple scripts that lock out all rotation, but I found that they cancel out the mouse rotation from the camera’s own script as well. If there was a way to have the Camera’s script ignore that rotation lock script, or vice versa, I think I’d be golden.
’
I’m also extremely new to scripting, so please excuse if I’m overlooking something obvious, any advice would be super appreciated