Hello, I’m at a bypass with attempting to make my lasers correctly translate when hitting portals. Currently I was able to get the easy part completed of having the laser appear at the connected portals location when hit
However, I was only able to get it to appear at the actor location. I would like to be able to get the hit location from the first portal so it can properly “reflect” on the connected portal like i have in the screen shot below.
Hmm… never tried such a thing before but maybe you could try this: Perform a line trace from your character to straight down the ground and get the impact location by breaking the hit results. Then subtract it from the location of the input portal. After that, manipulate the spawn location of your laser that’s gonna come out of the output portal by setting it to be the addition of the output portal’s location and the vector type result that we got from the previous step, or just set it’s relative location to be that vector type result after you spawn it as it is. Then make sure to keep this communication running by triggering whatever function you handle this continuously, maybe by using a while node which’s condition is binded to the player being inside the bounds of the input portal. Hope this helps!