Hi,
I want to run a script only when the player touches the gray part of the object shown, but the whole object is not only the solid part, but the hole too. See the following image for reference:
The collision is just not accurate, to get more accurate collision you must set the part’s CollisionFidelity to Precise blah blah blah, anyways it starts with precise.
It’s not a problem with collision fidelity. Rather, the cube is modelled so the hole in the cube is touchable. In fact, I already tried to use the precise collision and it didn’t work. That’s what the print("ah") part on my code is for.
So, if I understand correctly, the whole mesh is able to collide but you only want to execute your code if the player touches the gray part which is not possible since the hole also fires .Touched, is that right?
This union mesh will be the one you connect to the .Touched event, after doing so make another cylinder with same size than before and make it transparent to create the hole collisions.
That would be it.
Also don’t forget to weld those up and then set the cylinder CanTouch property to false.
Actually you could also just use another cube for making the hole collisions since that would save up some extra triangles for the renderer. (About 80 tris)