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

is there a simple way to detect if a part intersects any other parts?

Asked by
ZeroBits 142
8 years ago

I know there's something like this for CanCollide parts, but I'm wondering if there's sometihng for parts that aren't CanCollide.

0
Touched still fires even if either part is cantcollide. XAXA 1569 — 8y
0
Touched won't work for my purposes, since I want something more reliable with CFrames. ZeroBits 142 — 8y
1
This is not something trivial. You may want to use some libraries. Here's one that would probably do the job. http://www.roblox.com/Rotatable-Region3-item?id=227509468 XAXA 1569 — 8y
0
I actually don't need rotation. But thanks for the Region3 Idea! ZeroBits 142 — 8y
1
You can always do some math. I think there is something that allows you to check everything making contact with a given part, not sure. alphawolvess 1784 — 8y

1 answer

Log in to vote
-1
Answered by 8 years ago

I wasn't given any code to work with, So I'll simply say use an if statement. Make the if statement detect a part's cancollide, and when 1 parts touches that can collide, use a print("") to detect it.

0
This isn't a very informative answer. If I was in a situation where I could've used .Touched or an if statement, I wouldn't be asking the question. ZeroBits 142 — 8y
Ad

Answer this question