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

Detecting Collision Between Rectangular Prisms?

Asked by 9 years ago

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?

0
Region3 xolbStudios 127 — 9y

2 answers

Log in to vote
0
Answered by 9 years ago

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

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. Prohibetur 70 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

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

0
That would only tell me if the part is collidable ... not if it's actually intersecting anything. Prohibetur 70 — 9y
0
oh sorry kennyspy222 0 — 9y

Answer this question