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

Ray casting a circular pattern rather than a straight line?

Asked by
Ribasu 127
6 years ago
Edited 6 years ago

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?

0
Show us your script, please. DeceptiveCaster 3761 — 6y
0
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? Ribasu 127 — 6y
0
just change the ray shape to cylinder? hellmatic 1523 — 6y
0
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 Ribasu 127 — 6y
View all comments (2 more)
0
"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 Vulkarin 581 — 6y
0
Hi, question answered - what I asked for is actually a feature requested in Roblox Dev forum. So we wait. Ribasu 127 — 6y

3 answers

Log in to vote
0
Answered by 6 years ago

Instead of making a block part, change its shape?

part.Shape = Enum.PartType.Cylinder
--??
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? Ribasu 127 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

Ray casts are linear and only linear. Meaning, there is no circular singular Ray. As far as i know.

Log in to vote
0
Answered by
Ribasu 127
6 years ago

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.

Answer this question