Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / Object passing through Cloth

Author
Message
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 16th Mar 2009 10:22
It seems that Cloth doesn't always resist an object.

When I have an object with a semi-high mass (200) and the object rotating even slightly, the cloth wil resist it a little bit but then allow the object to pass through.

Has anyone else experienced this, and is there a way to prevent this from happening?


The one and only,


HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 16th Mar 2009 14:15
tried any of these they might help.




Dark Physics makes any hot drink go cold.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 16th Mar 2009 22:57
Just tried that.. didn't help at all

It's not that the object is stepping past the cloth. If the object simply falls onto the cloth, it acts fine. If the object has angular momentum (which causes the ball to roll across the cloth), then it "pops" right through.


The only fix I've found for this is setting the cloth thickness to an obscenely high value... to the point where the ball might as well be rolling on top of thin air due to the huge distance between it and the cloth.


The one and only,


HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 16th Mar 2009 23:55
have you tried changing the mass of the object landing on the cloth.

Dark Physics makes any hot drink go cold.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Mar 2009 04:14
Yes, but how am I supposed to have that object stretch the cloth if it's not massive enough to do that?


The one and only,


Kendor
21
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 17th Mar 2009 20:29
Wild guess here:

Maybe you are setting a high depth parameter value in the phy set cloth dimension command, resulting in the cloth sections being larger than your object. Such circumstance will allow your object to pass through the cloth, without colliding or colliding slightly with the border. You can see if this is happening by setting the cloth as wireframe. If this is the case, just lower the value.


Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Mar 2009 21:56
@Kendor:

Good thought, but the triangles in my cloth are much smaller than the sphere that's colliding with it.

I've tried a depth for the cloth all the way down to 0.05(Whereupon I got a horrible framerate)... all resulting in the same behaviour.


The one and only,


HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 17th Mar 2009 22:02 Edited at: 17th Mar 2009 22:03
If you can why not post the some cloth and sphere shooting bit code, so we can try some values.

Dark Physics makes any hot drink go cold.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Mar 2009 01:18 Edited at: 18th Mar 2009 01:32
Here's some sample code to see it happen.




Position the ball at 0,0,0 to see the kind of effect I want the ball to have on the cloth. (Without being attached to it, that is )


The one and only,


Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Mar 2009 01:38
On a side note... why does the cloth look like utter crap when you change the stretching stiffness to anything other than 1??


The one and only,


HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 18th Mar 2009 10:57 Edited at: 18th Mar 2009 11:15
this command seem to stop it falling through give it ago and see.



edit

well its 25/75 25% its ok.

Dark Physics makes any hot drink go cold.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Mar 2009 23:04
Okay, that seems to work for small distances... but why does it even happen? The ball obviously hits the cloth, yet it pops through.

Even turning on ccd for the ball doesn't help. Perhaps we need ccd for cloth as well?


The one and only,


HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 19th Mar 2009 13:05 Edited at: 19th Mar 2009 13:12
you might like to know that your small demo code helped me to get make cloth from object to nearly work,



its not 100% but it does nearly work.

Dark Physics makes any hot drink go cold.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Mar 2009 09:29
I tried your snippet, but I'm not understanding how the object is cloth. It seemed to roll around like an ordinary ball.


The one and only,


HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 20th Mar 2009 14:02
you should have seen some dents in it when spacebar is pressed to drop it again.

if your asking how it works its using the metal cloth idea, which is attached to a hidden object.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-04-26 14:06:35
Your offset time is: 2024-04-26 14:06:35