MinieLibrary/src/main/java/com/jme3/bullet/animation/DacLinks.java
/**
     * Add all managed physics objects to the PhysicsSpace.
     */
Add all managed physics objects to the PhysicsSpace.
Add all managed physics objects to the PhysicsSpace .
@Override
    protected void addPhysics() {
        PhysicsSpace space = getPhysicsSpace();
        Vector3f gravity = gravity(null);
        PhysicsRigidBody rigidBody;
        if (torsoLink != null) {
            rigidBody = torsoLink.getRigidBody();
            space.addCollisionObject(rigidBody);
            rigidBody.setGravity(gravity);
        }
        for (BoneLink boneLink : boneLinkList) {
            rigidBody = boneLink.getRigidBody();
            space.addCollisionObject(rigidBody);
            rigidBody.setGravity(gravity);
            PhysicsJoint joint = boneLink.getJoint();
            space.addJoint(joint);
        }
        for (AttachmentLink link : attachmentLinks.values()) {
            rigidBody = link.getRigidBody();
            space.addCollisionObject(rigidBody);
            rigidBody.setGravity(gravity);
            PhysicsJoint joint = link.getJoint();
            space.addJoint(joint);
        }
    }
@ Override protected void addPhysics ( ) { PhysicsSpace space = getPhysicsSpace ( ) ; Vector3f gravity = gravity ( null ) ; PhysicsRigidBody rigidBody ; if ( torsoLink != null ) { rigidBody = torsoLink . getRigidBody ( ) ; space . addCollisionObject ( rigidBody ) ; rigidBody . setGravity ( gravity ) ; } for ( BoneLink boneLink : boneLinkList ) { rigidBody = boneLink . getRigidBody ( ) ; space . addCollisionObject ( rigidBody ) ; rigidBody . setGravity ( gravity ) ; PhysicsJoint joint = boneLink . getJoint ( ) ; space . addJoint ( joint ) ; } for ( AttachmentLink link : attachmentLinks . values ( ) ) { rigidBody = link . getRigidBody ( ) ; space . addCollisionObject ( rigidBody ) ; rigidBody . setGravity ( gravity ) ; PhysicsJoint joint = link . getJoint ( ) ; space . addJoint ( joint ) ; } }
Add all managed physics objects to the PhysicsSpace.
Add all managed physics objects to the PhysicsSpace .