Hello, I’m trying to add slope detection to my FPS game using the 3D raycast extension, but I can’t for the life of me figure out how to offset the raycast so it’s always directly infront of the player no matter what way they are facing. The rotation doesn’t seem to affect anything and I don’t know why. The image attached is my code for the raycast, any help is appreciated!
![]()
