I have made a Folding Security gate in RC. It is handled by a spline, handling the general width of it - considering changing this to be handled by a numerical x- size as the gate has both a minimal and a maximal width.
The folding gate consist of two pairs of gates, one gate (A) is attached to the column and a secondary gate (B) is attached to gate A. Each side has 3 piston arms and an assembly unit.
The setup consist of a series of L2S generators, some which are nested in each other: COLUMNS and GATES are independent L2S setups sharing the same spline. GATES is assembles the gates, the right and the left, via a mirror modifier. Each gate is made up of a number of L2S generators (Frame, Balusters, spike list, and some of the piston arms) they are all assembled in a group composition so it acts as one unit. Gate B is nested to gate A, so that it can inherit the movement (rotation) of gate A. (See attached screendumps)
Now, it works more or less as planned. It took a while to make all parts act in connection with each other. And I had to use a lot of constants to handle smaller adjustments on the various parts.
I have however still some issues with getting the piston arms to move (turn) correctly. You probably wont notice it on a distance - but it irritates me, never the less.
The gates opens in an angle of max 90 degrees, and the various piston arms rotation is calculated by multiplying the gates opening angle with a factor value for each piston. This doesn’t work completely- and that is most visible when the gate is half open (45 degrees).
It is fairly simple to do in MAX via rigging and the use of various IK solvers, but the price is that I can’t alter the size of the gate. RC solves this problem, but the. I have the problem with the piston arms position when opening the gates.
Do you have any solution on that? Or is it so complicated that it is not worth the effort - and I should just live with having the piston arms a little off in various positions? My trigonometry skills are a little rusty to setup an equation to solve this problem, but maybe other have this skill polished and shinny?
More images, screendumps and a video can be seen athttps://photos.app.goo.gl/XKZxwRB3m9aA4r2t8