MinieLibrary/src/main/java/com/jme3/bullet/collision/shapes/HullCollisionShape.java
/**
     * Instantiate the configured shape in Bullet.
     */
Instantiate the configured shape in Bullet.
Instantiate the configured shape in Bullet .
private void createShape() {
        assert directBuffer == null : directBuffer;
        int numFloats = points.length;
        assert numFloats != 0;
        assert (numFloats % numAxes == 0) : numFloats;
        int numVertices = numFloats / numAxes;
        directBuffer = BufferUtils.createFloatBuffer(numFloats);
        for (float f : points) {
            if (!MyMath.isFinite(f)) {
                throw new IllegalArgumentException("illegal coordinate: " + f);
            }
            directBuffer.put(f);
        }
        long shapeId = createShapeF(directBuffer, numVertices);
        setNativeId(shapeId);
        setScale(scale);
        setMargin(margin);
    }
private void createShape ( ) { assert directBuffer == null : directBuffer ; int numFloats = points . length ; assert numFloats != 0 ; assert ( numFloats % numAxes == 0 ) : numFloats ; int numVertices = numFloats / numAxes ; directBuffer = BufferUtils . createFloatBuffer ( numFloats ) ; for ( float f : points ) { if ( ! MyMath . isFinite ( f ) ) { throw new IllegalArgumentException ( "illegal coordinate: " + f ) ; } directBuffer . put ( f ) ; } long shapeId = createShapeF ( directBuffer , numVertices ) ; setNativeId ( shapeId ) ; setScale ( scale ) ; setMargin ( margin ) ; }
Instantiate the configured shape in Bullet.
Instantiate the configured shape in Bullet .