On my vehicle I’m trying to do a simple cast to ground to retrieve the surface type.
it is working, and reports back the surface type.
I am just casting -90 in the Z. So it should be right under me.
But sometimes it casts all the way back to world 0,0,0. Then it goes back to underneath me, then back to world 0,0,0.
Also sometimes I get a green raycast line. Mostly it’s just red.
Been searching but I can’t find anything that points out the problem. I am triggering it with vehicle movement. (W or S).
Do I need to do more than just getworldlocation?
I’ll also note that I am doing an ‘endless runner’ with randomly spawning tiles.
When I cross over the border of the tiles (each in it’s own BP) it seems to cast to the default scene root for that BP.