private void switchToHardware() {
        numberOfJointsParam.setEnabled(true);
        jointMatricesParam.setEnabled(true);

        // Next full 10 bones (e.g. 30 on 24 bones)
        int numBones = ((armature.getJointCount() / 10) + 1) * 10;
        numberOfJointsParam.setValue(numBones);

        for (Geometry geometry : targets) {
            Mesh mesh = geometry.getMesh();
            if (mesh != null && mesh.isAnimated()) {
                mesh.prepareForAnim(false);
            }
        }
    }
Creates an armature control. The list of targets will be acquired
automatically when the control is attached to a node.

@param armature the armature
jme3-core/src/main/java/com/jme3/anim/SkinningControl.java