Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: ofb92 on March 17, 2023, 09:33:35 AM
-
hello guys I have 2 scenes with different fps controllers what I want to do is when loading to the second scene apply the first scenes camera rotations to the second scenes cam rotation but when i do that the second scenes camera just glitches is there any way to do this without using another scene
-
Hi,
are the scenes loaded async?
do you have a loading screen during the loading?
Maybe have 1 camera that persists (and have no camera on the other scenes)
or does the scenes only have the controllers and camera?
if so, maybe have both controllers in 1 scene and use the same camera.
and enable/disable the controller used/not use.
this way you could also make a 'transition' from 1 to the other
for example smoothly move camera from 1st person to 3rd person.
you can have a object with all the camera positions used and make it follow the player (or set as child) and make the camera follow (and rotate) the current used position object
-
I have 2 different fps controllers in 2 scenes there is no loading screen just camera fade , the thing is im making a fake vr game using the phone's gyroscope to move the mouse and when the player is looking somewhere while loading to a new scene the cameras rotation dosen't match the players head , i tried to apply the previous scenes cam rotation to the new scenes cam rotation but when i do that the fps controller camera's rotation lock is gone and its rotating really weird and i dont want a third scene to control the player.
(Also I'm loading scene additive)
-
Hi.
I think you best option is still to have 1 camera
can you show a video on what happens?
-
I think i get it , in standard assets there is two fps controllers and i use these 2 controlllers in 2 scenes
scene 1.fps controller
scene 2.rigidbody fps controller
at first i didnt think to replace first scenes fps controller
but now understand , standard fps controller only rotates camera but rigidbody controller also rotates the player itself
rotating rigidbody fps controllers camera breaks the script so to prevent this i could use rigidbody controller in the first scene
camera only rotates in x axes and the player rotates at the y axes