Hello there,
im trying to force the play to look at a given point (Vector3) using Unitys lookAt function on the camera object. The player im using is controlled via UFPS.
The code in Update basically looks like this:
This seems to be working excactly one time, resulting in a change of perspective. As far as i understand, the player should now not be able to look anywhere else. Is it possible that some UFPS component overrides my statement, for example by refocusing the camera?
Boiled down, i want to be able to determine where the player is looking via script. Does anyone know have an idea how one could implement this using UFPS?
Thank you very much in advance
im trying to force the play to look at a given point (Vector3) using Unitys lookAt function on the camera object. The player im using is controlled via UFPS.
The code in Update basically looks like this:
This seems to be working excactly one time, resulting in a change of perspective. As far as i understand, the player should now not be able to look anywhere else. Is it possible that some UFPS component overrides my statement, for example by refocusing the camera?
Boiled down, i want to be able to determine where the player is looking via script. Does anyone know have an idea how one could implement this using UFPS?
Thank you very much in advance