How to use collisionFideility in script?

Hi, I wanted to ask how could i use collision fideility in a script sence there is a Enum variable for it? So i am subtracting 2 parts a negative part and a normal part, And that works but the collision bro, Its so bad its not even funny, So i was thinking maybe changing the collision fideility when its done subtracting would do anything?

You can create PartOperations with a given CollisionFidelity at runtime using various methods within GeometryService. For example, in the SubtractAsync method, you could have some code like this:

local GeometryService = game:GetService("GeometryService")

local resultPartOperations = GeometryService:SubtractAsync(mainPart, {subtractPart}, { CollisionFidelity = Enum.CollisionFidelity.PreciseConvexDecomposition })

Similarily, you can create a MeshPart with a given CollisionFidelity at runtime using AssetService:CreateMeshPartAsync().

3 Likes