# Kinematics of Folding Door Panels

Hello everybody,

Could someone help me.
How can I set up the script in Kangaroo?
Maybe someone can send a short script, how can i solve this problem.

So that 2 door panels were folded as shown in the picture below.
One upper triangle constantly stays in place and the lower triangle moves vertically folding and unfolding door panels.

Something similar to what Daniel shows in the link below.

hinge.gh (14.7 KB)

Harald

Daniel,

Maybe you can help me in this matter?
Harald

This is the part of the problem. I donâ€™t understand how to fixate these 2 circles.

Harald

Good morning.

Where there are 2 circles, I plan to put gears.
Harald

Check these two examples:

rigidbodycurvecollide.gh (32.9 KB)

gear.gh (59.6 KB)

1 Like

Thank you very much Martin,

These are very good examples.
I hope they help me.
Iâ€™ll let you know.

Harald

Say thank you to @DanielPiker heâ€™s the man behind everything Kangaroo and he posted them on this forum.

Hi Martin and Daniel,

Thanks a lot to both of you.

Can you please tell me, where can I find a good tutorials (structured material) on the basics of Kangaroo?
To walk the path (beginner, intermediate, advanced).
For now, I want to understand the basics of Kangaroos to apply them to kinematics of machinery.

I found only these materials (links below). But itâ€™s not so easy to understand which component does what. Perhaps somewhere there is a repository of small scripts in the Grasshopper, where I can see how and what works, or a more extended description of the components with examples of their use?

Harald

Iâ€™ve been using Kangaroo for over a decade and I went through countless Grasshopper definitions. One thing that doesnâ€™t make things any easier for beginners is that some of the goals have been updated or added and if the tutorial isnâ€™t up to date, it might not be very helpful.

Martin or Daniel,

Can you please tell me, how can I control the movement of the geometry without a component â€śGrabâ€ť?
in rigidbodycurvecollide.gh

Harald

Hi Harald,

In the definition I posted in this reply

the movement is driven by an Anchor with inputs for both P and T. P is the starting position of the point and T is the target for where it goes. By rotating this target position using the slider, you control the motion.

Daniel,

Thank you for your prompt response.

Harald

Hi Daniel and Martin,

Could you comment please, why this gear is jumping? How to build a script so that it just rotates?

Harald

Daniel,

As for the movement, everything is now clear and working.
Many thanks for explaining how an anchor works.

Harald

Daniel,

Could you explain how this C# component works?

Harald

gear.gh (59.6 KB)

Martin and Daniel,

Could you tell me please, why these circles are jumping and not spinning like gears?