MinieExamples/src/main/java/jme3utilities/minie/test/RopeDemo.java
/**
     * Pin the endpoint of the indexed branch to its current location.
     *
     * @param branchIndex which branch to pin (&ge;0)
     */
Pin the endpoint of the indexed branch to its current location.

@param branchIndex which branch to pin (≥0)
Pin the endpoint of the indexed branch to its current location . @param branchIndex which branch to pin ( ≥0 )
private void pinEnd(int branchIndex) {
        String[] capSpecs = capSpecs(branchIndex);
        DynamicAnimControl latestDac = dacs.peekLast();
        Vector3f sum = new Vector3f();
        PhysicsLink link
                = latestDac.findManagerForVertex(capSpecs[0], sum, null);
        Vector3f pivot = new Vector3f(); 
        latestDac.findManagerForVertex(capSpecs[1], pivot, null);
        sum.addLocal(pivot);
        latestDac.findManagerForVertex(capSpecs[2], pivot, null);
        sum.addLocal(pivot);
        latestDac.pinToWorld(link, sum.divide(3f));
    }
private void pinEnd ( int branchIndex ) { String [ ] capSpecs = capSpecs ( branchIndex ) ; DynamicAnimControl latestDac = dacs . peekLast ( ) ; Vector3f sum = new Vector3f ( ) ; PhysicsLink link = latestDac . findManagerForVertex ( capSpecs [ 0 ] , sum , null ) ; Vector3f pivot = new Vector3f ( ) ; latestDac . findManagerForVertex ( capSpecs [ 1 ] , pivot , null ) ; sum . addLocal ( pivot ) ; latestDac . findManagerForVertex ( capSpecs [ 2 ] , pivot , null ) ; sum . addLocal ( pivot ) ; latestDac . pinToWorld ( link , sum . divide ( 3f ) ) ; }
Pin the endpoint of the indexed branch to its current location.
Pin the endpoint of the indexed branch to its current location .
// world coordinates
