Search Unity

Question Fast procedural generation of mesh colliders

Discussion in 'Physics for ECS' started by slushieboy99, Jun 23, 2021.

  1. slushieboy99


    Aug 29, 2014
    Before I began converting my project to DOTS I had quite fast collision mesh creation by changing the cooking options I.E. weld vertices, clean mesh etc. I've been trying to find a way to do this with DOTS and came across this thread:, but I'm having trouble implementing it, most of the interfaces are internal and some of the methods don't exist anymore.

    Does anyone know if there's an easier way to do this now? I can see that MeshCollider.Create does not appear to have any definitions with parameters for cooking options, but maybe there's an easier way.

    Also, any tips for mesh creation in DOTS would be greatly appreciated, currently I'm doing running MeshCollider.Create inside of a job and it's EXTREMELY slow even with burst enabled. (A lot of Semaphore.WaitForSignal). I'm very new to DOTS so any tips would be greatly appreciated. Thanks!