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

Could i get some more explanation on ray casting?

Asked by
seikkatsu 110
5 years ago

Pretty self explanatory. I would like to get some more information on raycasting if possible. Also i would like to know in what kind of script should i use it

1 answer

Log in to vote
0
Answered by
Abandion 118
5 years ago

Create a line with an origin and a direction. Ray.new() is used to generate rays, and findpartonray is used to find where they intersect parts or terrain.

https://developer.roblox.com/en-us/api-reference/datatype/Ray

https://developer.roblox.com/en-us/api-reference/function/Workspace/FindPartOnRay

0
thanks, its a bit more clear now seikkatsu 110 — 5y
Ad

Answer this question