MinieLibrary/src/main/java/jme3utilities/minie/PhysicsDumper.java
/**
     * Dump all children of the specified CompoundCollisionShape.
     *
     * @param parent the shape to dump (not null, unaffected)
     * @param indent (not null)
     */
Dump all children of the specified CompoundCollisionShape.

@param parent the shape to dump (not null, unaffected)
@param indent (not null)
Dump all children of the specified CompoundCollisionShape . @param parent the shape to dump ( not null unaffected ) @param indent ( not null )
private void dumpChildren(CompoundCollisionShape parent, String indent) {
        PhysicsDescriber describer = getDescriber();
        ChildCollisionShape[] children = parent.listChildren();
        for (ChildCollisionShape child : children) {
            addLine(indent);
            CollisionShape shape = child.getShape();
            String desc = describer.describe(shape);
            stream.print(desc);
            Vector3f offset = child.copyOffset(null);
            if (!MyVector3f.isZero(offset)) {
                stream.print(" offset[");
                desc = MyVector3f.describe(offset);
                stream.print(desc);
                stream.print(']');
            }
            Quaternion rot = child.copyRotation(null);
            if (!MyQuaternion.isRotationIdentity(rot)) {
                stream.print(" rot[");
                desc = MyQuaternion.describe(rot);
                stream.print(desc);
                stream.print(']');
            }
            Vector3f scale = shape.getScale(null);
            desc = describer.describeScale(scale);
            addDescription(desc);
            long objectId = shape.nativeId();
            addNativeId(objectId);
        }
    }
private void dumpChildren ( CompoundCollisionShape parent , String indent ) { PhysicsDescriber describer = getDescriber ( ) ; ChildCollisionShape [ ] children = parent . listChildren ( ) ; for ( ChildCollisionShape child : children ) { addLine ( indent ) ; CollisionShape shape = child . getShape ( ) ; String desc = describer . describe ( shape ) ; stream . print ( desc ) ; Vector3f offset = child . copyOffset ( null ) ; if ( ! MyVector3f . isZero ( offset ) ) { stream . print ( " offset[" ) ; desc = MyVector3f . describe ( offset ) ; stream . print ( desc ) ; stream . print ( ']' ) ; } Quaternion rot = child . copyRotation ( null ) ; if ( ! MyQuaternion . isRotationIdentity ( rot ) ) { stream . print ( " rot[" ) ; desc = MyQuaternion . describe ( rot ) ; stream . print ( desc ) ; stream . print ( ']' ) ; } Vector3f scale = shape . getScale ( null ) ; desc = describer . describeScale ( scale ) ; addDescription ( desc ) ; long objectId = shape . nativeId ( ) ; addNativeId ( objectId ) ; } }
Dump all children of the specified CompoundCollisionShape.
Dump all children of the specified CompoundCollisionShape .