Forums > Jitter

Possible to make a "ghost" phys.body?


Sym
January 4, 2013 | 2:39 am

Hey, I want to use the hinge object to simulate a Ball that is following the cursor and won’t collide with any other phys.body objects in the phys.world.

Synching the phys.ghost to the phys.body object is not a problem, but the phys.body attached to the hinge can still collide and affect other phys.bodies in the world.

Is there any way to make the phys.body "invisible" for other phys.bodies while still being able to get it’s position data on the hinge and synch the phys.ghost object to it?


January 4, 2013 | 8:08 am

Check out the filters/filterclass attribute of jit.phys.body. There is an example in jitter-examples/jitter/render/physics folder, phys.body.filters.maxpat

-Ben



Sym
January 4, 2013 | 5:02 pm

thanks ben, wasn’t aware of all the phys.examples really helpfull!


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