Hello. I want to create some possibility in game that allows to teleport player where I’m looking at the current moment. For this I want to start some ray (just an example), get distance to the place, where this ray ended and tp my player. All I want to ask what structure is used to start this ray?
Use “LineTraceByChannel” and supply it with a start and end vector. This will send out a line to intersect with the world. If there is a hit, the impact point will be the vector position you want to teleport to.
You won’t need to grab the distance.