Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Detecting Collision Between Rectangular Prisms?

I am not looking for someone to tell me to use the .Touched event. I am looking for a way to use 2x8 points that I know form rectangular prisms and detect if they intersect one another. So how would you go about doing this efficiently?

1 comment

0

Region3

2 answers

Try using Region3! I'm not quite familiar with it, and as far as I've seen, it's quite buggy... I've tried using it in the past, but it wasn't efficient for me. Either I was a terrible scripter, or it's plain buggy. Take a look at it here!

http://wiki.roblox.com/index.php?title=API:Region3

1 comment

0

I've already looked into Region3 and there is, as far as I know, no way of rotating it. Otherwise it would of worked.

maybe try

if Game.Workspace.Part.CanCollide = true do println("ITS INTERSECTING") else println("its not touching so yolo")

Dont know if it works but i just made that randomly in like 10 seconds

2 comments

0

That would only tell me if the part is collidable ... not if it's actually intersecting anything.

0

oh sorry

This discussion is preserved as it was. New answers, comments, and votes are closed.