PDA

View Full Version : Xpresso | Object follows cloth pos *and* rot


unseenthings
06-23-2006, 10:02 PM
I've been trying to figure this out for a couple of days... I just can't get it. After digging around the forum some, I've found several threads that allude to what I need, but none have that clear-cut solution that I need. I've tried all kinds of xpresso combinations and still coming up short.

Basically, I'm trying to use a square piece of cloth with some stiffness to collide with something and bounce/roll/slide/whatever off. That part's easy. But I'm trying to have a much nicer object follow the position (again, pretty easy) and the rotation (that's the part that's killing me) of said colliding cloth object.

I've looked through these threads and they've helped, but I still can't nail down the rotation.
http://forums.cgsociety.org/showthread.php?t=373519 (recent)
http://forums.cgsociety.org/showthread.php?t=220491 (old)
http://forums.cgsociety.org/showthread.php?t=280294 (old)

I've tried grabbing a polygon or point from the cloth and dealing with the resulting normals, and while I can make the "pretty" cube follow the collider one (using per's bounding box method above), I cannot, in any way, shape or form get the thing to rotate properly. I can get it to rotate all day long, even at the right angles (though it's not lined up with the original, if that makes sense) but just can't quite get it.

And no, putting the "pretty" item as a child of the standin does *not* work for cloth. It works great for dynamics, but you don't get all those wonderful particle effectors (wind, rotation, turbulence, etc) with dynamics.

Thanks for any help you can offer that'll save my sanity :)

Srek
06-25-2006, 08:24 PM
Bake the first cloth solution and then make the good object a cloth too. Instead of letting it move freely though just belt all of it's points to the first baked object.
Cheers
Björn

unseenthings
06-25-2006, 09:07 PM
That does *exactly* what I wanted. Thanks a ton! You're the man!

I've learned a lot about various approaches... but the versatility of Cinema never ceases to amaze me. (or the helpfulness of cgtalk types)

CGTalk Moderation
06-25-2006, 09:07 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.