MinieExamples/src/main/java/jme3utilities/minie/test/TargetDemo.java
/**
     * Count how many rigid bodies are active.
     */
Count how many rigid bodies are active.
Count how many rigid bodies are active .
int countActive() {
        int result = 0;
        Collection<PhysicsRigidBody> rigidBodies
                = getPhysicsSpace().getRigidBodyList();
        for (PhysicsRigidBody rigidBody : rigidBodies) {
            if (rigidBody.isActive()) {
                ++result;
            }
        }
        return result;
    }
int countActive ( ) { int result = 0 ; Collection < PhysicsRigidBody > rigidBodies = getPhysicsSpace ( ) . getRigidBodyList ( ) ; for ( PhysicsRigidBody rigidBody : rigidBodies ) { if ( rigidBody . isActive ( ) ) { ++ result ; } } return result ; }
Count how many rigid bodies are active.
Count how many rigid bodies are active .