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

Feb 28, 2012 at 7:07pm

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

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?

thank you
LLT

– Pasted Max Patch, click to expand. –
#62032
Feb 29, 2012 at 2:13am

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.

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.

– Pasted Max Patch, click to expand. –
#224061
Feb 29, 2012 at 4:02pm

Hi Robert.
Ok, thank you for the patch.

Laurent

#224062
Mar 1, 2012 at 5:20am

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

http://cycling74.com/downloads/incremental/

#224063
Mar 1, 2012 at 3:36pm

Hi,
thanks Robert

#224064

You must be logged in to reply to this topic.