Using jit.proxy to control jit.gl.multiple individual instance
Hi,
is it possible to use jit.proxy to control an individual jit.gl.multiple individual ?
What I am trying to do is to highlight a specific plane created with jit.phys.multiple > jit.gl.multiple > jit.gl.gridshape,
when it is collided by another shape.
Let's say I named my jit.gl.multiple "banana"
I get the collision dict from the jit.phys.work correctly, and I can extract the shape instance being collided by using regexp on a string like : banana_4_u838059901 ... as it seems the number 4 here refers to the plane instance in the jit.gl.multiple ...
Am I correct so far?
But then, what is the name to be provided to a jit.proxy to access to a specific plane ?
I tried banana_4, but jit.proxy answers : "jit.proxy: unable to find object named banana_4"
...
you cannot send messages to individual ob3d instances of a jit.gl.multiple using jit.proxy, as the instances are not full-fledged jitter objects, but rather simply geometry instances.
however there may be another way to achieve what you want. please post a simple version of your patch, showing what you're trying to achieve with jit.proxy, and i'll do my best to offer a suggestion.
Thanks Rob for the reply.
What I was trying to do was just what I said : "highlight a specific plane created with jit.phys.multiple > jit.gl.multiple > jit.gl.gridshape, when it is collided by another shape."
I sorted out a solution by using various jit.phys.body instances wrapped in a poly~. Will try to clean up the patch to post it here, in case someone is willing for it.
hi Vincent,
I wanted to do the same thing some time ago, and I made like this...
Balls become red when there is a collision with worldbox and each others...
mathieu