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

??Finding if a part is intersecting another part placement system?

Asked by 3 years ago

How would I go about finding another part if it is intersecting with another one using a placement system.

I tried using :GetTouchingParts() but the thing is if I had to use that I would have to physically place a part using a remote event and check if they actually touched which exploiters could abuse

Is there any better way performance wise than :GetTouchingParts() like rays

Region3 won't work for me because my parts are rotated.

Im gonna be using meshes, models, unions, parts everything basically

If I had to use :GetTouchingParts() though I would have to insert in a touch handler and check with a remote event everytime.

0
Why would you ever need to check if two different clients' placement parts before there are placed are intersecting? AlexanderYar 788 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Since you're making a part placement system, you might as well make a lot of grids and see if that grid is occupied. this can be done by having maybe a boolvalue "occupied" and it will be ticked once its occupied by anything

Ad

Answer this question