How to properly create a LONG chain/rope?
-
I want to drop a Sketchyphysics chain/rope, made of several components, over a complex object.
But do I have to link each one of the possibly hundreds of chain segments to ball joints or is it possible to automate the process, so I can simply copy and paste the segments?
-
Yes, there is a way to create a chain/rope (if you have SP3 with script field).
in the model I have here there is two example, one with ball thats linked to each other direct, and one with a cylinder between each ball.
[attachment=0:122zsqmx]<!-- ia0 -->ROPE.skp<!-- ia0 -->[/attachment:122zsqmx]
@unknownuser said:
The long ROPE:
> ontouch{|t,s,p| > connect(t,"ball") if frame==0 > } >
-- This script is only connected everything it touch when you press play.
@unknownuser said:
The short ROPE.
> ontouch{|toucher,s,p| > if frame==0 #only at start > case toucher.name > when "Rope" > connect(toucher,"ball") > end > else #after first frame > ontouch{} #turn off ontouch event. > end > } >
-- This script connect everything that have the name "Rope" when the Play button is pressed.
hope this help...
/hpnisse -
I was expecting some way to do it without having to resort to scripting. Cause sincerely, that looks like greek to me
-
Okey
Perhaps the file that never show upp in the answer before understand what I mean?
That you see its not so hard, and Iam not good at neither scripting or english:P.
This is better than having physics joints in every link that take a lot of the computer:P
Advertisement