Hi,
I'm trying to implement seamless portals. For that, I'm using SetPositionAndRotation(newPosition, newRotation, true, false), so snapAnimator is set to true in case this makes a difference.
Teleporting works fine for the position part and the rotation, apart from the vertical view direction (the x value of the rotation, I noticed this on the camera) - it is always reset to 0. I'm not sure what exactly is causing this. Is there a way to keep the original x-value when using SetPositionAndRotation?
Thanks,
Best regards,
Pat
I'm trying to implement seamless portals. For that, I'm using SetPositionAndRotation(newPosition, newRotation, true, false), so snapAnimator is set to true in case this makes a difference.
Teleporting works fine for the position part and the rotation, apart from the vertical view direction (the x value of the rotation, I noticed this on the camera) - it is always reset to 0. I'm not sure what exactly is causing this. Is there a way to keep the original x-value when using SetPositionAndRotation?
Thanks,
Best regards,
Pat