MinieLibrary/src/main/java/com/jme3/bullet/animation/DacLinks.java
/**
     * Ignore collisions between rigid bodies connected by at most maxHops
     * physics joints, but don't ignore any other pairs.
     *
     * @param maxHops the maximum number of hops (&ge;0)
     */
Ignore collisions between rigid bodies connected by at most maxHops
physics joints, but don't ignore any other pairs.

@param maxHops the maximum number of hops (≥0)
Ignore collisions between rigid bodies connected by at most maxHops physics joints but don ' t ignore any other pairs . @param maxHops the maximum number of hops ( ≥0 )
private void ignoreCollisions(int maxHops) {
        /*
         * Clear the ignore lists of all bodies.
         */
        PhysicsRigidBody[] bodies = listRigidBodies();
        for (PhysicsRigidBody body : bodies) {
            body.clearIgnoreList();
        }
        /*
         * Rebuild the ignore lists using recursion.
         */
        Map<PhysicsBody, Integer> visited = new HashMap<>(bodies.length);
        for (PhysicsRigidBody body : bodies) {
            visited.clear();
            visited.put(body, maxHops);
            RagUtils.ignoreCollisions(body, body, maxHops, visited);
        }
    }
private void ignoreCollisions ( int maxHops ) { /*
         * Clear the ignore lists of all bodies.
         */ PhysicsRigidBody [ ] bodies = listRigidBodies ( ) ; for ( PhysicsRigidBody body : bodies ) { body . clearIgnoreList ( ) ; } /*
         * Rebuild the ignore lists using recursion.
         */ Map < PhysicsBody , Integer > visited = new HashMap < > ( bodies . length ) ; for ( PhysicsRigidBody body : bodies ) { visited . clear ( ) ; visited . put ( body , maxHops ) ; RagUtils . ignoreCollisions ( body , body , maxHops , visited ) ; } }
Ignore collisions between rigid bodies connected by at most maxHops
 physics joints, but don't ignore any other pairs.
Ignore collisions between rigid bodies connected by at most maxHops physics joints but don ' t ignore any other pairs .