I’ve been messing around lately, and decided to try and figure out how to determine the Vector3 location of an object, inside of a circle. The Circumference is based of the the FOV/2, you could say this is somewhat like a detection field, I’ve tried a lot of methods, but they just don’t work, could someone help me write an algorithm?
Thank you!
Here's a solution:
local sphere = workspace.sphere local part2 = workspace.part2 while true do wait() if (sphere.Position - part2.Position).magnitude < sphere.Size.X / 2 then --do whatever you want end end
It might be a bit less efficient than other methods.
Hope this helps!