I can not run a jit.phys.picker / jit.phys.multiple mass 0.

LLT's icon

Hello, I can not run a jit.phys.picker / jit.phys.multiple mass 0.
while it works with jit.phys.body mass 0.

Do you have an idea?

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

thank you
LLT

Rob Ramirez's icon

hi LLT.

unfortunately, phys.multiple creates instances of physics rigid-bodies, not instances of jit.phys.body objects, so you can't use the phys.picker - jit.proxy combination like this.

what you can do, however, is retrieve the index number of the body instance, from the output of phys.picker, and use that to create the matrix cell address, using division and modulo operations.

i modified your patch to better explain my meaning.

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

please note: there is a bug in the current release of phys.multiple that prevents the mass attribute being set in the max box. we will have an incremental updated posted soon that fixes this.

LLT's icon

Hi Robert.
Ok, thank you for the patch.

Laurent

Rob Ramirez's icon

heads up: the incremental update is now live, and fixes the issues with setting mass on a phys.multiple.
https://cycling74.com/downloads/incremental/

LLT's icon

Hi,
thanks Robert

Tobias Rosenberger's icon

hi, am i right that it is not possible to pick a specific instance of jit.gl.multiple with jit.gl.picker, but only with jit.phys.picker via jit.phys.multiple? (Looking for an unique name...)

Rob Ramirez's icon

yes, you are correct. this is a limitation of gl.multiple with gl.picker, but phys.multiple and phys.picker work as expected. you can therefore wrap a gl.multiple with a phys.multiple, and disable dynamics in your phys.world, in order to do picking with phys.picker.