Hey there i really would like to know how to detect if the raycast has hit a ledge. I do know how to use raycasts by the way, but i just can't really find a way to detect a ledge. My plan here is on making a ledge grab script, i already made the "animation code" and all the other necessary stuff this is everything i need now.
(talking about this) https://imgur.com/rFnWbz5
(edit): I decided to give out some more information so there it is:
1.The ray comes out from the character's Head front/Face 2.I'm thinking about Ledge hanging and climbing only (probably i'll do ledge moving later) 3.This script is almost done, The only thing necessary is ledge detection
ty c:

6 comments
by ledge, do you mean like "a narrow horizontal surface projecting from a wall, cliff, or other surface." or something completely different?
The Tallest position of a Part Or for better explaining check this image: https://imgur.com/rFnWbz5
Could you try getting the part, taking it's position and then from the size value find the top and then the edge? Like top = Position.y + (size.y/2)?
Then somehow get the edge of the part from there although idk what to do then. I am just putting out ideas...
Oh... sorry just realized that that makes zero sense with ray casting :(
It's all right all ideas are welcome :), maybe that can be used alongside with FindPartOnRay