Weird raycasting behavior with terrain

I am trying to raycast downwards to the ground, doing it on a baseplate works well

But if it’s terrain:

Same goes for my earlier attempt:
666b40ae0fe63a761cf6657623d93fc11c5e98ab

I don’t know WHY and HOW this is even possible, all I do was raycasting downwards.

I can’t show the script to y’all right now, but the only difference between the given origin and the direction is the Y-Axis and that’s it.

It’ll be great if know what’s behind all this and how to fix. Thanks.

1 Like