MinieExamples/src/main/java/jme3utilities/minie/test/RopeDemo.java
/**
     * Disable one single-ended IK constraint of the most recently added rope.
     */
Disable one single-ended IK constraint of the most recently added rope.
Disable one single - ended IK constraint of the most recently added rope .
private void pullAPin() {
        DynamicAnimControl latestDac = dacs.peekLast();
        if (latestDac != null) {
            IKJoint[] ikJoints = latestDac.listIKJoints();
            for (IKJoint ikJoint : ikJoints) {
                Constraint constraint = ikJoint.getPhysicsJoint();
                if (constraint.isEnabled() && constraint.countEnds() == 1) {
                    constraint.setEnabled(false);
                    break;
                }
            }
        }
    }
private void pullAPin ( ) { DynamicAnimControl latestDac = dacs . peekLast ( ) ; if ( latestDac != null ) { IKJoint [ ] ikJoints = latestDac . listIKJoints ( ) ; for ( IKJoint ikJoint : ikJoints ) { Constraint constraint = ikJoint . getPhysicsJoint ( ) ; if ( constraint . isEnabled ( ) && constraint . countEnds ( ) == 1 ) { constraint . setEnabled ( false ) ; break ; } } } }
Disable one single-ended IK constraint of the most recently added rope.
Disable one single - ended IK constraint of the most recently added rope .