MinieLibrary/src/main/java/com/jme3/bullet/animation/RagUtils.java
/**
     * Enumerate all physics joints that connect bodies in the specified array.
     *
     * @param bodies the array to search (not null, unaffected)
     * @return a new Set of pre-existing instances
     */
Enumerate all physics joints that connect bodies in the specified array.

@param bodies the array to search (not null, unaffected)
@return a new Set of pre-existing instances
Enumerate all physics joints that connect bodies in the specified array . @param bodies the array to search ( not null unaffected ) @return a new Set of pre - existing instances
public static Set<PhysicsJoint> listInternalJoints(PhysicsBody... bodies) {
        Set<PhysicsJoint> result = new TreeSet<>();
        for (PhysicsBody body : bodies) {
            PhysicsJoint[] joints = body.listJoints();
            for (PhysicsJoint joint : joints) {
                PhysicsBody otherBody = joint.findOtherBody(body);
                for (Object b : bodies) {
                    if (b == otherBody) {
                        result.add(joint);
                        break;
                    }
                }
            }
        }
        return result;
    }
public static Set < PhysicsJoint > listInternalJoints ( PhysicsBody ... bodies ) { Set < PhysicsJoint > result = new TreeSet < > ( ) ; for ( PhysicsBody body : bodies ) { PhysicsJoint [ ] joints = body . listJoints ( ) ; for ( PhysicsJoint joint : joints ) { PhysicsBody otherBody = joint . findOtherBody ( body ) ; for ( Object b : bodies ) { if ( b == otherBody ) { result . add ( joint ) ; break ; } } } } return result ; }
Enumerate all physics joints that connect bodies in the specified array.
Enumerate all physics joints that connect bodies in the specified array .
// Is otherBody found in the array?
