tombola sequencer

carlfunken's icon

Hi, I'm trying to make a sequencer like the tombola sequencer from Teenage Engineering OP-1. Could anyone show me the right way to do it? I've started with this

carlfunken's icon
Max Patch
Copy patch and select New From Clipboard in Max.
carlfunken's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I've made an opencylinder but I don't have a collison when put a sphere in it.

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

in order to use concave shapes with jit.phys.body, you need to send a matrix of points describing the shape to the object.
check out the "matrix" tab of the phys.body help file for more info.
i've updated your patch to show proper usage of this technique.
notice the use of @shape dynamicmesh and @kinematic 1
dynamicmesh will allow you to update your point matrix dynamically (possibly not necessary for your needs)
enabling kinematic will allow you to apply position and rotation transformations to the rigid body.
we use jit.gl.mesh to draw the shape.

carlfunken's icon

thank you ! very helpful ! :)