Hi everyone. I’m currently trying to give my character the ability to teleport to a maximum distance. I added a collision sphere component to the character to represent this range, and created a custom collision channel for it to block. I’m using a Get Hit Result Under Cursor by Channel to set the teleport location to a point on the inside of the sphere, but it doesn’t seem to be working correctly. Can anyone tell me what I’m doing wrong?
The first way looks the best, given the concept - the vector math solution won’t keep the cursor in check for air targeting.
However, it doesn’t allow for a variable length target depending on the game’s needs - sometimes you want people to only target a few feet away, sometimes quite far away.