Portal rotation stoping movement

Pitikixo
Mon, 07 Feb 2022 03:20:23 +0000
Blueprint

I’m trying to implement a portal system, I know is a common thing here, but, my problem is…
Once I’ve got the portal working, I managed (through another ue q&a :D) to make it so you enter the portal and skip through the other one no matter how rotated is the second one (using SetControlRotation), the problem is that now the player gets stopeed for a second when it gets ported making it kind of cranky and not pleasant at all, for example if you enter the portal jumping you just get ported to the floor without any inertia.
Here is the BP of the portal, the basics are: both portals in the same BP and they get placed in the map by the Construction Script via the variables PosPortalA/B and RotPortalA/B, once the FPCharacter overlaps one of the portals gets teleported to the other one location (applying the portal’s rotation).

If i get rid of the rotation (you enter facing north and exit facing north) it doesn’t happens this “stopping” frame, but this would cut a lot of utility for this portals.
Therefore I understand the problem is in the “SetControlRotation” but I couldnt manage to make the rotation happen any other way.
Thanks in advance any advice given.

6 posts - 2 participants