Raycast not properly casting on layered clothing

Below I have an image where I’m visualizing the rays I made from a raycast and as you can tell, the rays aren’t conforming to the bounds of the mesh for the layered clothing. Is there a way to fix this? Perhaps a setting I could turn on to get more percise rays on warp targets? I’ve looked at the class but haven’t found anything useful.
image

Very sure most if not all layered clothing use Box CollisionFidelities. However I don’t think it’s a good idea to change the collision of it so a better solution would be to disable CanQuery and CanTouch for a bit of optimization

This image showcases of Default, Hull and Box CollisionFidelity respectively

You’re right! I just looked at the layered clothing collision boxes and it seems like that’s the problem. I wish Roblox had a way to make things more precise, but it’s good to know exactly what the problem is now at least.

Also, a note for future reference, noticed that changing the collision fidelity of the mesh part alters the outcome of the ray cast, but collision meshes are not updated with mesh warping, so it still won’t be precise.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.