MinieExamples/src/main/java/jme3utilities/minie/test/SeJointDemo.java
/**
     * Configure seed groups during startup. Seeds are divided into 4 groups,
     * each with its own material and pivot location.
     */
Configure seed groups during startup. Seeds are divided into 4 groups,
each with its own material and pivot location.
Configure seed groups during startup . Seeds are divided into 4 groups each with its own material and pivot location .
private void configureGroups() {
        ColorRGBA[] seedColors = new ColorRGBA[maxGroups];
        seedColors[0] = new ColorRGBA(0.2f, 0f, 0f, 1f);
        seedColors[1] = new ColorRGBA(0f, 0.07f, 0f, 1f);
        seedColors[2] = new ColorRGBA(0f, 0f, 0.3f, 1f);
        seedColors[3] = new ColorRGBA(0.2f, 0.1f, 0f, 1f);
        for (int i = 0; i < maxGroups; ++i) {
            ColorRGBA color = seedColors[i];
            materials[i] = MyAsset.createShinyMaterial(assetManager, color);
            materials[i].setFloat("Shininess", 15f);
        }
        /*
         * The 4 pivot locations are arranged in a square in the X-Y plane.
         */
        pivotLocations[0] = new Vector3f(0f, 60f, 0f);
        pivotLocations[1] = new Vector3f(-60f, 0f, 0f);
        pivotLocations[2] = new Vector3f(0f, -60f, 0f);
        pivotLocations[3] = new Vector3f(60f, 0f, 0f);
    }
private void configureGroups ( ) { ColorRGBA [ ] seedColors = new ColorRGBA [ maxGroups ] ; seedColors [ 0 ] = new ColorRGBA ( 0.2f , 0f , 0f , 1f ) ; seedColors [ 1 ] = new ColorRGBA ( 0f , 0.07f , 0f , 1f ) ; seedColors [ 2 ] = new ColorRGBA ( 0f , 0f , 0.3f , 1f ) ; seedColors [ 3 ] = new ColorRGBA ( 0.2f , 0.1f , 0f , 1f ) ; for ( int i = 0 ; i < maxGroups ; ++ i ) { ColorRGBA color = seedColors [ i ] ; materials [ i ] = MyAsset . createShinyMaterial ( assetManager , color ) ; materials [ i ] . setFloat ( "Shininess" , 15f ) ; } /*
         * The 4 pivot locations are arranged in a square in the X-Y plane.
         */ pivotLocations [ 0 ] = new Vector3f ( 0f , 60f , 0f ) ; pivotLocations [ 1 ] = new Vector3f ( - 60f , 0f , 0f ) ; pivotLocations [ 2 ] = new Vector3f ( 0f , - 60f , 0f ) ; pivotLocations [ 3 ] = new Vector3f ( 60f , 0f , 0f ) ; }
Configure seed groups during startup.
Configure seed groups during startup .