01-02-2022, 06:24 AM
How can I get the right particles to stitch?
Im not quite sure why the sack generator works in the way it does since it still seems to be relying on the logic that was used to build the mesh and not fetching the particles that are in the right positions to stitch.
also from testing I can see that the garment is going inside out, which yea is a strong indicator the stitching is going very wrong somewhere.
I was attempting to get the positions of particles to match the right vertices, which I think will require a local to world transform matrix that would work only on the first loop, but Im not sure how to get the particles.
I thought cloths[i].GetParticlePosition(j) would work, but it doesn't work past j = 0.
Im not quite sure why the sack generator works in the way it does since it still seems to be relying on the logic that was used to build the mesh and not fetching the particles that are in the right positions to stitch.
also from testing I can see that the garment is going inside out, which yea is a strong indicator the stitching is going very wrong somewhere.
I was attempting to get the positions of particles to match the right vertices, which I think will require a local to world transform matrix that would work only on the first loop, but Im not sure how to get the particles.
I thought cloths[i].GetParticlePosition(j) would work, but it doesn't work past j = 0.