Possible to make a "ghost" phys.body?

Jan 4, 2013 at 2:39am

Possible to make a "ghost" phys.body?

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?

#65910
Jan 4, 2013 at 8:08am

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

#237368
Jan 4, 2013 at 5:02pm

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

#237369

You must be logged in to reply to this topic.