Obi Official Forum

Full Version: tearable cloth
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

Is there a way to start to tear a cloth without the physics engine?
In the sample we throw a sphere with a collider, but is there a way to do this with raycasting?
Like, somehow detecting where the cursor is pointing and start to tear in a certain place of the cloth?

Thanks!
(23-09-2021, 12:40 PM)Bubu101 Wrote: [ -> ]Hi there,

Is there a way to start to tear a cloth without the physics engine?
In the sample we throw a sphere with a collider, but is there a way to do this with raycasting?
Like, somehow detecting where the cursor is pointing and start to tear in a certain place of the cloth?

Thanks!

Yes, you can combine spatial queries with tearing. See:
http://obi.virtualmethodstudio.com/manua...eries.html

Cloth has a Tear() method to which you can pass a structural element. See the API docs for details, let me know if you need help with it.

kind regards,