I need would like my bodies to interact with a particle system and to do that I would like to obtain the extraction vector. It is the vector which represents the minimum distance and direction I need to apply to the particle so I can extract it from inside a body (actually a CollisionSkin in JigLibX).
Here is a schema of what I mean (in black particles, in orange the extraction vector, other colors are the collision skin primitives) :
I found an article which described what I want in 2D (and I am working in 2D actually), but I think there is a way to do that in 3D too :
They are using a signed distance field to represent the minimum distance to the surface of the object.
I also thought about using SegmentIntersect from outside the skin towards the center of mass but there are some positions where it wouldn't return a correct normal.
Any help is appreciated, thanks!