I want to do ray casting. And usually I think of ray casting as a ray from point A to point B. But what if I want a single ray that is in the shape of a circle? I know some people do a loop i.e. cast a ray many times, to take many beams and form a circular shape, but I want to cast just once! Is this impossible?
COMMUNITY QUESTION
Ray casting a circular pattern rather than a straight line?
3 answers
Instead of making a block part, change its shape?
part.Shape = Enum.PartType.Cylinder
--??
1 comment
0
i'm making a ray. there isn't a ray.shape property or maybe there is another way to do what you are saying?
Ray casts are linear and only linear. Meaning, there is no circular singular Ray. As far as i know.
Hi all, found someone who asked for the same feature here https://devforum.roblox.com/t/more-cast-functions-like-workspace-findpartsonray/11629 in 2014 and I don't see any updates, so it seems that this is the end of my search.
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
Show us your script, please.
What kind of script are you expecting? I never made reference to a script; my question is theoretical and not practical. How else may I help you help me?
just change the ray shape to cylinder?
yes. how? I don't see a ray.shape property or anything of the sort; as others have said it seems to be only linear
"A ray is a line with an endpoint that extends infinitely in one direction" -Google.....no, there is no such thing and you would have to calculate a circle of rays manually...but I would personally recommend Region3 instead
Hi, question answered - what I asked for is actually a feature requested in Roblox Dev forum. So we wait.