Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question about acceptable meshes (tearable)
#1
Hi, I was testing out tearable cloth today and got the error "ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection."

I did some testing and this is what I got
1) "thick" mesh (my custom mesh that is 2 vertices thick): error
2) plane mesh (and my custom mesh reduced to 1 vertex in thickness): no error
3) simple cube mesh (in-built unity version, vertices 2 x 2 x 2): no error
4) "thick" plane mesh (essentially a simple cuboid with vertices 4 x 4 x 2): error

It seems to me the error occurs when the cloth is "thick" (ie not just 1 vertex in thickness). I don't know about the cube.
I would like to confirm if Obi Cloth is only designed to handle flat, 1 vertex thick meshes.
I want to be able to cut/tear cloths with a thickness to them, do any of your solutions allow that? (eg softbody)
Thanks in advance.
Reply


Messages In This Thread
question about acceptable meshes (tearable) - by danazoid - 26-07-2022, 01:43 PM