MinieLibrary/src/main/java/com/jme3/bullet/animation/DacLinks.java
/**
     * Read the mass of the attachment associated with the named bone.
     *
     * @param boneName the name of the associated bone (not null, not empty)
     * @return the mass (in physics units, &gt;0) or NaN if undetermined
     */
Read the mass of the attachment associated with the named bone.
@param boneName the name of the associated bone (not null, not empty)
@return the mass (in physics units, >0) or NaN if undetermined
Read the mass of the attachment associated with the named bone . @param boneName the name of the associated bone ( not null not empty ) @return the mass ( in physics units > 0 ) or NaN if undetermined
@Override
    public float attachmentMass(String boneName) {
        Validate.nonNull(boneName, "bone name");
        float mass;
        if (getSpatial() == null) {
            mass = super.attachmentMass(boneName);
        } else if (attachmentLinks.containsKey(boneName)) {
            AttachmentLink link = attachmentLinks.get(boneName);
            PhysicsRigidBody rigidBody = link.getRigidBody();
            mass = rigidBody.getMass();
        } else {
            String msg = "No attachment for " + MyString.quote(boneName);
            throw new IllegalArgumentException(msg);
        }
        return mass;
    }
@ Override public float attachmentMass ( String boneName ) { Validate . nonNull ( boneName , "bone name" ) ; float mass ; if ( getSpatial ( ) == null ) { mass = super . attachmentMass ( boneName ) ; } else if ( attachmentLinks . containsKey ( boneName ) ) { AttachmentLink link = attachmentLinks . get ( boneName ) ; PhysicsRigidBody rigidBody = link . getRigidBody ( ) ; mass = rigidBody . getMass ( ) ; } else { String msg = "No attachment for " + MyString . quote ( boneName ) ; throw new IllegalArgumentException ( msg ) ; } return mass ; }
Read the mass of the attachment associated with the named bone.
Read the mass of the attachment associated with the named bone .