Collisions (trigger) on non-convex objects

Hi

we are currently developping an application using unity that requires detecting collisions (just triggers, no physics attached) on non-convex objects.
We saw that mesh colliders set to non-convex can only detect collisions with other convex meshes. That is our main problem. We don’t need it to be super fast, since it is not a game and we only have 1 element moving at a time.
What we tried :

  • recreate sub-objects containing sub-parts of the original meshes at runtime, so thay can be convex, and then make them detect onTriggerEnter/exit and reporting it to the original target. It works fine but… it is VERY slow (more than a few minutes to create all sub-meshes). It could be fine though if we could save the generated submeshes for later use so the application doesnt recreate it everytime it runs. But we didn’t find how to do that. Is it possible to save a runtime generated mesh in another scene or onto the hard drive so we can use it for later purpose?

Basically we are stuck :

  • can’t find a way to detect collision(triggers) with 2 non convex object.
    OR - can’t find a way to save runtime generated mesh for later use.

Our only left option seems to divide meshes into smaller parts directly in the models, which our graphists really don’t want to do.

Any idea ?
Thanks

PS : not sure if this is the right forum for that kind of question.

Nobody knows the answer?

You can use the System.IO classes from the Mono library to write data to a file. However, it is possible you could explain how you are generating the submeshes? There may be a faster way to do it that would avoid the preprocessing.