Rotating an object in one axis with camera and another axis with torque
I'm setting up a player controller, and I'm using the mouselook script from the player controller asset package to look around. The Yaxis is controlled with the script on the camera/head and the Xaxis is controlled with the script on the torso. The player is in a zeroG environment, so I also need to rotate the player with a torque on the torso. However, this force only rotates the object when the two instances of the mouselook script are disabled. How can I rotate the torso in two different directions (one with the mouse and one with a rotate key) simultaneously?
It looks like the mouselook script is taking my initial rotation at Start and multiplying by a quaternion to set the object's rotation based on the mouse delta, which in turn is preventing any other scripts from editing the object's rotation. Not sure how to work around this though...
Your answer
Follow this Question
Related Questions
I use click to move, but don't want my player to rotate... How to fix this rotation? 1 Answer
Character rotation, only happens when mouse is rotated around world centre (0,0,0) 0 Answers
Rotate character body alongside movement. 0 Answers
Best way to make player Parallel to walls? 1 Answer
Restricting player camera rotation.x 0 Answers