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

How to find parts adjacent to another?

I'm trying to do a version of A* Search Algorithm to pathfinding with a series of parts that create a path.

To find all the surrounding parts to one, I tried to do GetTouchingParts and GetConnectedParts, but neither of them work for parts that are adjacent.

How would I go about finding parts that are adjacently surrounding another part?

1 answer

✓ Accepted answer

Raycasting would work. By casting a ray from the center of the part to another part. Theres also region3, but I don't know about region3 because I never tried that finding parts using that. I don't know if it will work.

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