Cloth movement and impact

Hello!

Just a quickie: How can I have it so when a cloth object is hit with a raycast, it would act like a collider being thrown at it, and how, once it has it, keep the deformed shape, rather than smoothing itself out again??

What have you already tried, if anything?

A quick look at the docs reveals this function for applying a force. The freezing it in position could be trickier, though.

I’d say try playing with the stiffness; if you crank it all the way up after the force being applied, it might be able to hold it in place. I’m not in a spot to test right now, unfortunately.

For reference:

cloth docs

cloth manual

edit


derp. Use Cloth.enabled to disable the physics simulation…