I’m using the first person character controller from the asset store.
I teleport the controller when it passes through a portal.
It correctly maintains its orientation relative to the in and out portals, but the impulse direction is unchanged. Is there a way to set it?
After a bit of code diving I solved it.
this.app.fire('firstperson:look', eul.y, eul.x);
(x
and y
are transposed to be azimuth
, elevation
)