ThinkingParticles: how to change sc joint type by several inputs?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 03 March 2013   #1
ThinkingParticles: how to change sc joint type by several inputs?

Hi,
I'm studying TP from few days, tons of head aches...
In my demolition test I would to control sc joint types by several parameters.
The first idea is to transform joints nearest a broken one from fixed to spherical (for a better transition from rigid to collapsed structures).
An espression helper (an if/then cycle) would be a good starting point:

if the "x" joint was connected with a broken joint then changes from type (1) to (0), else remains to type (1).

How can I detect "x" joints?
 
Old 03 March 2013   #2
You can use a PSearch or PPassAB, its particle output into a joint counter. Then the joint counter - into joint data node, and you can read the properties of the joints from there.
 
Old 03 March 2013   #3
If you want to switch joint types in progress prepare for problems
 
Old 03 March 2013   #4
thanks for reply,
The image I've linked is what my brain is able to do at this time and I'm not sure that joint counter and joint data are right.
the upper scheme is what I wish to obtain...
Attached Images
File Type: jpg tp_joint.jpg (54.7 KB, 8 views)
 
Old 03 March 2013   #5
Make joint breakable. This work fine for dynamic impacts.
Changing type often can cause a problems in stability.
 
Old 03 March 2013   #6
You'll get better results if you put the joint center between the two objects, like (pos1-pos2)/2 + pos1
 
Old 03 March 2013   #7
J-B: I think you are right...complex joint explodes, 4 iteration per frame works fine in "simple" situations (and spring joints are orrible creaturs).

Hristo: TP is a new tool for me. I've spended the last 2 neurons of my brain to understand that I can offset joint positions by the world position input using expressions (as I think you've suggested me ).

However, thanks for your effort...you helped me considerably to improve my TP learning.
 
Old 03 March 2013   #8
Yeah sorry Glad you figured it out!
 
Old 03 March 2013   #9
Thread automatically closed

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.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:01 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.