Hello!
I am trying to fix a problem in my placement system where if two parts are inside each other you should not be able to place the part. I am using GetPartsInPart()
It works fine but the problem is that I only want it to fire if it is inside the part completely. I don’t want it to fire if it is just inside the part with only 0.125 studs as shown in the picture below. I only want it to fire if it is more than 0.125 studs inside the part.
If it is more than 0.125 studs inside the part it should turn red like the parts on the left.
if it is less than 0.125 studs inside the part or outside should turn green like the parts on the right.
Maybe I should use Magnitude inside the for in pairs do? If so how would I do that? Or maybe I should use another way that is not GetPartsInPart()?
I hope you understood what I am trying to achieve here, if you have any questions please ask them!
Thank you for the help.