x


Scaling cloth during runtime?

Hi!

How can i scale an Interactive Cloth during runtime? Is it possible? Scaling the object itself does not work :(

Kind regards!

more ▼

asked Apr 06 '11 at 07:59 PM

Phel gravatar image

Phel
26 1 1 4

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first

I had this same issue just today, and couldn't find the answer on the web. I found a solution, albeit quite inelegant.

After you change the scale of the GameObject that the InteractiveCloth is attached to, change the tearFactor. (I'm using 0 as mine, so I just set it to 1 then back to 0.)

This causes the simulation to restart, and when it does, it will take the new scale into account.

Cheers

more ▼

answered Mar 14 '12 at 09:28 PM

nitz gravatar image

nitz
16 1 1 3

(comments are locked)
10|3000 characters needed characters left
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x123
x38

asked: Apr 06 '11 at 07:59 PM

Seen: 961 times

Last Updated: Mar 14 '12 at 09:28 PM