MinieLibrary/src/main/java/com/jme3/bullet/collision/PhysicsCollisionObject.java
/**
     * Read common properties from a capsule.
     *
     * @param capsule the input capsule (not null, modified)
     * @throws IOException from the importer
     */
Read common properties from a capsule.
@param capsule the input capsule (not null, modified)
@throws IOException from the importer
Read common properties from a capsule . @param capsule the input capsule ( not null modified ) @throws IOException from the importer
final protected void readPcoProperties(InputCapsule capsule)
            throws IOException {
        setCcdMotionThreshold(capsule.readFloat(tagCcdMotionThreshold, 0f));
        setCcdSweptSphereRadius(
                capsule.readFloat(tagCcdSweptSphereRadius, 0f));
        setContactDamping(capsule.readFloat(tagContactDamping, 0.1f));
        setContactProcessingThreshold(
                capsule.readFloat(tagContactProcessingThreshold, 0f));
        setContactStiffness(capsule.readFloat(tagContactStiffness, 1e30f));
        setDeactivationTime(capsule.readFloat(tagDeactivationTime, 0f));
        setFriction(capsule.readFloat(tagFriction, 0.5f));
        setRestitution(capsule.readFloat(tagRestitution, 0f));
        setRollingFriction(capsule.readFloat(tagRollingFriction, 0f));
        setSpinningFriction(capsule.readFloat(tagSpinningFriction, 0f));
        int mode = capsule.readInt(tagAnisotropicFrictionMode, AfMode.none);
        if (mode != AfMode.none) {
            Vector3f components = (Vector3f) capsule.readSavable(
                    tagAnisotropicFrictionComponents, new Vector3f(1f, 1f, 1f));
            setAnisotropicFriction(components, mode);
        }
        Savable[] ignoreList = capsule.readSavableArray(tagIgnoreList, null);
        int numIgnored = ignoreList.length;
        for (int index = 0; index < numIgnored; ++index) {
            PhysicsCollisionObject pco
                    = (PhysicsCollisionObject) ignoreList[index];
            addToIgnoreList(pco);
        }
        applicationData = capsule.readSavable(tagApplicationData, null);
        userObject = capsule.readSavable(tagUserObject, null);
    }
final protected void readPcoProperties ( InputCapsule capsule ) throws IOException { setCcdMotionThreshold ( capsule . readFloat ( tagCcdMotionThreshold , 0f ) ) ; setCcdSweptSphereRadius ( capsule . readFloat ( tagCcdSweptSphereRadius , 0f ) ) ; setContactDamping ( capsule . readFloat ( tagContactDamping , 0.1f ) ) ; setContactProcessingThreshold ( capsule . readFloat ( tagContactProcessingThreshold , 0f ) ) ; setContactStiffness ( capsule . readFloat ( tagContactStiffness , 1e30f ) ) ; setDeactivationTime ( capsule . readFloat ( tagDeactivationTime , 0f ) ) ; setFriction ( capsule . readFloat ( tagFriction , 0.5f ) ) ; setRestitution ( capsule . readFloat ( tagRestitution , 0f ) ) ; setRollingFriction ( capsule . readFloat ( tagRollingFriction , 0f ) ) ; setSpinningFriction ( capsule . readFloat ( tagSpinningFriction , 0f ) ) ; int mode = capsule . readInt ( tagAnisotropicFrictionMode , AfMode . none ) ; if ( mode != AfMode . none ) { Vector3f components = ( Vector3f ) capsule . readSavable ( tagAnisotropicFrictionComponents , new Vector3f ( 1f , 1f , 1f ) ) ; setAnisotropicFriction ( components , mode ) ; } Savable [ ] ignoreList = capsule . readSavableArray ( tagIgnoreList , null ) ; int numIgnored = ignoreList . length ; for ( int index = 0 ; index < numIgnored ; ++ index ) { PhysicsCollisionObject pco = ( PhysicsCollisionObject ) ignoreList [ index ] ; addToIgnoreList ( pco ) ; } applicationData = capsule . readSavable ( tagApplicationData , null ) ; userObject = capsule . readSavable ( tagUserObject , null ) ; }
Read common properties from a capsule.
Read common properties from a capsule .