Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i detect a ledge using raycasts?

Asked by 6 years ago
Edited 6 years ago

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:

0
by ledge, do you mean like "a narrow horizontal surface projecting from a wall, cliff, or other surface." or something completely different? theking48989987 2147 — 6y
0
The Tallest position of a Part Or for better explaining check this image: https://imgur.com/rFnWbz5 DevSersponge 5 — 6y
0
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)? OBenjOne 190 — 6y
0
Then somehow get the edge of the part from there although idk what to do then. I am just putting out ideas... OBenjOne 190 — 6y
View all comments (2 more)
0
Oh... sorry just realized that that makes zero sense with ray casting :( OBenjOne 190 — 6y
0
It's all right all ideas are welcome :), maybe that can be used alongside with FindPartOnRay DevSersponge 5 — 6y

Answer this question