Slope detection?

Could someone explain me how can I detect slopes? I thought on doing for example

local result = workspace:Raycast(root.CFrame.UpVector * (-8), root.CFrame.lookVector, Params)

for getting the normal but then I’m stuck and don’t know what to do

2 Likes

What do you need to use the slope detection for?

2 Likes

I’m using it for sliding I’ve already got everything but the slope detection and acceleration

I don’t need you to write the code just a quick explanation if you could

Maybe this could help?
rbx documentation on raycasting

A short explanation would be:

Raycasting shoots invisible lines to detect stuff for you.

Yeah i know but to detect the slope angle etc? Dont I need to calculate the surface normal and then something else

Sorry, for that I can’t help. I haven’t used Raycasting before tbh :sweat_smile:

So I wouldn’t know how to detect the angle of the part.

1 Like

Have you tried searching before posting? It seems there are multiple topics that talks about slope detection.

Yeah I searched for a lot and checked almost every single topic about this however these 2 you last sent I haven’t seen them so I’ll check them and if I can’t get an answer I’ll come back here.

Marking this as the solution however I didn’t really use this but I finished what I wanted to do.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.