How to detect if two parts are touching without Roblox Physics

I’m trying to make a laser that will display a beam that will stop when it comes in contact with a part’s surface. So I need to adjust the size of the laser so that it wont go through opaque objects; however, I’m not sure how to detect whether or not the laser is touching an object. The laser itself is an anchored part so the Touched Event wont work because the laser isnt handled by Roblox’s physics system.

My plan is to increase the laser’s size value gradually until it touches an object. How would I go about doing this?

1 Like

BasePart | Roblox Creator Documentation may be the best way to detect if parts are touching.

1 Like

you can use workspace:GetPartsInPart, Region3 , Raycast
there are a lot of ways to detect touching!
Note : i recommend Raycast which is fastest,best

2 Likes