- Home /
Camera in fixed position which rotates with player.
I'm attempting to recreate a camera similar to this
I thought placing the camera in a set location and attaching it as a child object to the player would be obvious enough as it would just move and rotate with the player however this causes the player/camera to spin uncontrollably. I believe it's because I'm using ScreenToWorldPoint from the camera to get the world mouse position and set the players forward direction pointing towards the mouse position. This means whenever the camera moves so does the mouse position therefore the players forward direction does and it gets caught in a loop. Any ideas? I don't think there's any code to post that would clarify this any further.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Rotate object using mouse, slows down on release 2 Answers
Camera rotate with mouse in TPC 0 Answers
Scripting Issue With Top Down Mouse Movement 1 Answer
Need to rotate a 3rd person object to the camera rotation 1 Answer