Constraint Matrix Jit.Phys.Multiple

Noah Mitchell's icon

Trying to get some type of soft body simulation going. Was wondering if I could access the constraint matrix in jit.phys.multiple to be able to attach rigid via a closest distance parameter or something like that.

Thanks,
Noah

Rob Ramirez's icon

you can in fact, search the file browser for phys.multiple.constraints.maxpat, and search the jit.phys.multiple ref page for the word constraint. you can output the matrix by enabling constraint_matrix.

Noah Mitchell's icon

Ahh I see my problem now. I'm working with a one dimensional matrix. The help patch says:

"When set, constraints are automatically created halfway between each rigid body and its nearest neighbor, along each dimension of the position matrix"

Is there a way to set the constraint to nearest neighbor in world space instead of dimensionality space? A lot of my obj files end up being one dimension.