I'm trying to make an ability for my game that allows the player to teleport a few blocks in the direction they are facing, but that obviously has come with the issue of the player getting stuck inside blocks or getting into places they're not supposed to. I'm wanting it to be that if the path of teleportation were to intersect a block, the teleportation distance is cut short so that they don't go through or get stuck inside