- Home /
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??
Answer by Chris D · Jul 12, 2011 at 08:15 PM
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:
edit
derp. Use Cloth.enabled to disable the physics simulation...
Your answer
Follow this Question
Related Questions
AI Players Movement for Rolling Ball Game 0 Answers
Physics.Raycast doesn't work with all collidables 1 Answer
Bounce not always triggering 0 Answers
RayCast Nearest Character 0 Answers
AddForce to a point of a GameObject, not the center 1 Answer