24-07-2023, 07:18 AM
(This post was last modified: 24-07-2023, 07:19 AM by josemendez.)
(24-07-2023, 04:23 AM)superbad714 Wrote: Hi, when I finish the tear action, the torn place looks too many fragments, can access to modify it? Is it to make the edge more smooth, like a round hole.
https://i.postimg.cc/7YkkNNv0/obishot2.png
https://i.postimg.cc/gJyW9w8n/41afd269c9...900b2a.png
Other than using the automatic force-based tearing (which doesn't allow you to choose which edges are torn, these are selected based on a force threshold) you can call the cloth's Tear(StructuralConstraint edge) method manually on edges of your choice, which makes the shape of the torn area entirely up to you.
Note that after calling Tear() one or more times, you must call cloth.UpdateDeformableTriangles(); to update the cloth's visual representation.