- Home /
How to set new rotation for FPS prefab, if it turns back?
I made a cut scene which contains second player prefab: 3D hands model and camera. In start of cut scene my first original FPS player stands in 0, 90, 0 rotation. Through script I disable it's mesh renderer, First Person Controller and camera. After the cut-scene first prefab's components must be enabled, and it must stand on new position with new rotation (0, 180, 0). I set new position of player. - it works fine. BUT then I tryed to set new ROTATION - it works 1 second or less, and FPS turns back to 0, 90, 0 rotation.
I have 2 scripts for scene, one on trigger, second in animation event (on the last frame). I tryed:
To set 0, 180, 0 rotation in OnTriggerEnter().
To set 0, 180, 0 rotation in trigger script Update().
To use LookAt() with target object.
To use Quaternion.FromToRotation with target object.
To use eulerAngles.
In all this ways FPS turns to 0, 90, 0. The last way - to Instantiate prefab. It's a big problem, because it has many scripts on it and for many variables I'll must to write Find() function.
Perhaps, my problem associated with First Person Controller Script.
Your answer
Follow this Question
Related Questions
How to rotate FPSController in mobile? 1 Answer
Keep the scene view rotation of my camera in play mode (it resets to 0) [EXAM ^^] 1 Answer
FPS Controller rotation,FPS Controller rotation problem 0 Answers
How do you make a Raycast follow your mouse in an FPS? 0 Answers
why is the mouse look messing up on the new fps character 0 Answers