I’m making a lightweight portal system which needs to work with multiple objects passing through them. i need it to work with player actor, projectile actors (and eventually line traces, although this will use a different mechanic).
Currently my portals teleport the actor, however the actor velocity is overriding the rotation.
my initial thoughts are to set velocity to zero before making the teleport (i do not want to destroy/spawn the actor) and then reapplying its velocity (recorded on hit) with a new trajectory after the teleport.
In advanced versions i would like to calculate the entry angle and have that reflected from the forward vector of the OutPortal, but for now i would settle just for having it go in the direction of forward vector.