I am working on a teleportation spell that will allow the players to teleport through walls and stuff. But I don’t want them to go through the terrain.
The current method is to do a step trace like what you do in Ray March, and find the longest non-overlap location. But the terrain proves to be a problem.
I can’t use line trace because I have a lot of props using the same collision channel/profile as the terrain. Multi trace doesn’t work obviously because those props need to be Blocking instead of Overlapping.
So any Ideas that I can only trace a single Actor? Or to calculate the height at a specific point?
The problem is that I have multiple other props around and they block the trace. And once it’s blocked, the trace won’t continue to reach the terrain. I do want player to be able to go inside some hollow spaces like rooms/ boxes.