MinieLibrary/src/main/java/com/jme3/bullet/animation/PhysicsLink.java
/**
     * Create and configure a rigid body for this link.
     *
     * @param linkConfig the link configuration (not null)
     * @param collisionShape the desired shape (not null, alias created)
     * @return a new instance, not in any PhysicsSpace
     */
Create and configure a rigid body for this link.
@param linkConfig the link configuration (not null)
@param collisionShape the desired shape (not null, alias created)
@return a new instance, not in any PhysicsSpace
Create and configure a rigid body for this link . @param linkConfig the link configuration ( not null ) @param collisionShape the desired shape ( not null alias created ) @return a new instance not in any PhysicsSpace
private PhysicsRigidBody createRigidBody(LinkConfig linkConfig,
            CollisionShape collisionShape) {
        assert collisionShape != null;
        float volume = MyShape.volume(collisionShape);
        float mass = linkConfig.mass(volume);
        density = mass / volume;
        PhysicsRigidBody body = new PhysicsRigidBody(collisionShape, mass);
        float viscousDamping = control.damping();
        body.setDamping(viscousDamping, viscousDamping);
        body.setKinematic(true);
        body.setUserObject(this);
        return body;
    }
private PhysicsRigidBody createRigidBody ( LinkConfig linkConfig , CollisionShape collisionShape ) { assert collisionShape != null ; float volume = MyShape . volume ( collisionShape ) ; float mass = linkConfig . mass ( volume ) ; density = mass / volume ; PhysicsRigidBody body = new PhysicsRigidBody ( collisionShape , mass ) ; float viscousDamping = control . damping ( ) ; body . setDamping ( viscousDamping , viscousDamping ) ; body . setKinematic ( true ) ; body . setUserObject ( this ) ; return body ; }
Create and configure a rigid body for this link.
Create and configure a rigid body for this link .