I have been fighting with intersecting instances in a volume for a long time now and can't find a solution and also lack knowledge of nodes. "Distributing points on faces" node has a "Poisson Disk" setting which helps prevent points intersection, unlike "Distribute points in volume" node. As the result, I've been banging my head against the wall for two days now, trying to find a solution.
I need to scatter black pebbles within an object (it's orange in edit mode), avoiding blue object.
The box is converted to a volume and then points are scattered in it. Raycast node is used to identify the blue object and its bounds to avoid points generation and it does the job partially.
This node tree completely disregards the mesh of all instances and generates points too close to the faces of the orange box. Obviously, when instances of pebbles are applied to points, a mesh of pebbles intersects with the face of the orange box.
Ideally, I need instances not only to avoid intersections with the volume (orange box) but also to avoid intersections with each other, providing simulation-like results.
P.S.: Running an actual simulation is not an option, it will murder my CPU.