i chose transform because i’m not actually calculating the positions and rotations inside, i’m doing a matrix solve on the transform directly. this approach is nice because it’s always bang on with your finger positions (i find that a lot of other approaches are quite lazy with this and deviate from what your fingers are actually doing / where they are on the object).
i’ve attached updated version and another helper plugin called ‘finger filter’ which helps reduce the jitter
instead of filtering the positions of the stack, it filters the finger positions, which think is approaching the problem more directly.
beyond this it would be nice to add momentum to the slides (linear and angular), and perhaps deal with more touches.
notes on attached version:
this now will output on the ‘Trash’ pins which stack items have been deleted this frame. you can then use the transform and index to run a delete animation of your choice.
also, there’s the concept of an ‘Owner’. An owner ‘owns’ a set of slides inside the stack. then you can address those slides by the owner ID. This is useful if you want to categorise items in the stack.
move is used to perform a tweened movement of a slide in the stack. you give the new transform, a duration and an ID
check the config pins for ‘Constraints’ and ‘Button action’. Constraints stops your slides moving outside an area. Button action tells the plugin what pressing the button on the slide will do (either close the slide, or send a bang on the output pin).
Stack MT.dll (36.9 kB)