11 final force
Add the last force to the VEX loop by sampling the value and gradient VDB of the ruin. This gives you the distance between point and wall as well as the wall’s normal direction. Calculate a force that points towards the wall and add it to the grow direction. Sample the VDB a second time in the new position to check if the point is inside the wall. If so, just push it out along the normal.