Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Tearing in local space
#2
(14-04-2018, 09:38 PM)jabza Wrote: Hello,

So far ObiCloth has been a breeze to integrate into my project, very happy!

However, the current issue I'm facing is with ObiTearableCloth. My solvers are setup to simulate in local space, but as a result projectiles seem to pass straight through my cloth.
Switching the solver to world space does fix the issue (cloth tears on impact), but I require local space for my project.

For reference, I use the projectiles that are included with the tearable cloth example scene. I spawn the projectiles as a child of the solver, but this appears to make no difference.
Please see my ObiSolver below.

[Image: txxX3j9.png]

I've also noticed that substeps seem to reduce, or completely prevent tearing?

Any help on this matter would be greatly appreciated.

Thanks in advance.

Hi,

This is a known limitation: rigidbody forces are ignored when interacting with a cloth in local space. As a result, the cloth can "feel" the rigidbodies you fling at it, but the rigidbodies are not affected by the cloth, thus allowed to pass right trough it (as they do with regular Unity cloth, which is also simulated in local space).

Local space cloth is generally only used for character simulation, where this is a non-issue. May I ask why you need tearable cloth in local space?

Regarding the question about substeps, note that tearing is implemented as:
Code:
if (constraint.force > threshold) Tear();

The constraint force is the force that the cloth needs to exert on itself to recover from external deformation. When you use smaller timesteps, the deformation experienced by the cloth in each timestep is smaller and so is the force. You should re-adjust the tearing thresholds.

kind regards,
Reply


Messages In This Thread
Tearing in local space - by jabza - 14-04-2018, 09:38 PM
RE: Tearing in local space - by josemendez - 15-04-2018, 11:49 AM
RE: Tearing in local space - by jabza - 15-04-2018, 12:35 PM
RE: Tearing in local space - by josemendez - 17-04-2018, 09:44 AM
RE: Tearing in local space - by jabza - 17-04-2018, 09:27 AM