- Home /
Matching player's camera rotation to another object's rotation
I'd like to make it so that the first person controller changes position while the player's camera takes on a new rotation (imagine a player walking around and then clicking on a desk, which teleports them to that "station").
Changing position is no problem, but matching the camera rotation to the rotation of another object (I'm using another camera) is giving me fits. It feels like I should just be able to say, "Take the x axis from the second camera transform and make it the x axis for the player's character transform," but I can't figure out how to do it. It's certainly not as simple as that, but all my playing around with Euler angles and quaternions is having no effect at all. The player jumps to the new location with the camera pointed in whatever direction they started with.
Your answer
Follow this Question
Related Questions
Control camera rotation by induvidual axises through Vector3s (for a fixed camera system) 0 Answers
How can I rotate the camera in 90° with pressing one button? 2 Answers
How to make a snappy fps camera controller for android/ios 0 Answers
my camera dont want to follow the ball,camera not wanna move with the ball 0 Answers
I want camera to rotate by joystick 0 Answers