|06 June 2006|
Where's my hasenfeffer??portfolio
Xpresso | Object follows cloth pos *and* rot
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.
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