get position (X Y Z) from jit.gl.gridshape or jit.phys.body

Franky Redente's icon

HI guys, can someone please guide me on the best method to get get position (X Y Z) from jit.gl.gridashape or jit.phys.body ?
Basically I need to map a jit.gl.gridashape or jit.phys.body to a vector synth or anything i like.

Previously I have used a [ jit.gl.multiple ] connected to a [ jit.spill @plane 0 ] and i get what i need, but this time i need to use a single jit.gl.gridshape.

Thank you for your help.

t's icon

if you need x,y,z of every gridshape vertice when moving around then @matrixoutput 2.

Franky Redente's icon

Hi T thank you,
I only need the position (X Y Z) of one gridshape - jit.phys.body, could you please post an example?
I have tried but its not working..i am sure i am not doing it correctly

Here and an example of a gridshape attached to a jit.phys.body

Max Patch
Copy patch and select New From Clipboard in Max.

thank you

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

you need to send getposition message to the body object:

Franky Redente's icon

amazing. thank you T