Hi community,
I’m doing a simple teleport and use transform.position transform.rotation. Using First Person Controller. I have a problem with rotation. I can not properly rotate the camera. After rotation camera has an original value from the mouse. Unfortunately, I do not know how to deal with it.
Can somebody help me with this?
MouseLook.rotationX’ is inaccessible due to its protection level.
If you’re using the standard MouseLook.js script to control your camera, then the camera’s rotation is set by that script. If you need different behaviur, you either need to use a different camera control script, or a copy of that script modified to do what you need. You didn’t describe what behaviour you want, so it’s difficult to offer specific advice.