Forums > Jitter

Using jit.proxy to control individual instance

Apr 18 2013 | 2:46 pm


is it possible to use jit.proxy to control an individual individual ?

What I am trying to do is to highlight a specific plane created with jit.phys.multiple > >,
when it is collided by another shape.

Let’s say I named my "banana"
I get the collision dict from the 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 …

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"

Apr 18 2013 | 7:06 pm

you cannot send messages to individual ob3d instances of a 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.

Apr 21 2013 | 11:06 pm

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 > >, 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.

Apr 22 2013 | 1:34 pm

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…

-- Pasted Max Patch, click to expand. --

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter