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

Can I get the normal of a terrain's surface?

Asked by 4 years ago

I'm trying to get the normal of a rock terrain and spawn something on it. Is that possible?

1 answer

Log in to vote
2
Answered by 4 years ago
Edited 4 years ago

Nvm.. found it. For anyone who is curious about this:

local ray = Ray.new(origine, direction)
local part, pos, normal = workspace:FindPartOnRay(ray, part, false, false)
Ad

Answer this question