[ODE] Getting Bodies to pass through one another?

Jon Watte (ODE) hplus-ode at mindcontrol.org
Wed Jun 29 17:56:50 MST 2005


Burte-force: in your nearcallback, test if the bodies of the geoms being 
tested are both ghosts, and don't create any contacts.

Or use the collider bits, setting them as "ghosts" and make it so they 
only collide with non-ghosts. (You allocate one bit for "ghost" 
collision class).

Cheers,

		/ h+


James wrote:
> Hi,
> I'm hoping this is an easy one.
> I have two bodies and I want them to be able to occupy the same position 
> in the world without ode trying to shake them apart. Basically - like 
> ghosts.
> The thing is, I need regular physics to apply when they interact with 
> other particular bodies (I have the body IDs in a list). Imagine 
> something like, ghosts can pass through each other, but can't go through 
> walls.
> I have tried to play with the ERP and CFM values for the contact I get 
> back from their collision, but it doesn't help. I can't change the world 
> values for these params, beause then everything becomes a ghost. How do 
> I do this?
> Your help is greatly appreciated - thanks in advance!
> James
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
> 
> 


More information about the ODE mailing list