16-04-2024, 07:51 AM
(This post was last modified: 16-04-2024, 07:54 AM by josemendez.)
(16-04-2024, 07:16 AM)ziziza93 Wrote: Thank you for your response.
Due to the continuous collision between the mesh collider and skinned cloth, the performance degradation is severe.
MeshColliders are extremely costly. In case you're trying to get the cloth to collide against a MeshCollider that's being updated every frame - which for some reason is something I see a lot of people attempting to do -, it's even worse since you're rebuilding the collider's internal acceleration structure every frame.
For character clothing, you should use the typical solution for games which are skin constraints. These involve no collision detection at all, and yield cloth that animates together with the character.
For collision detection against a complex static mesh, Signed distance fields offer similar quality to MeshColliders at a much lower cost.
(16-04-2024, 07:16 AM)ziziza93 Wrote: Is there a way for the cloth to stop colliding and stay in place after a certain period of time has passed since play?
You could set the solver's sleep threshold to 1 after some time. This will freeze all particles in place.
kind regards,