public FloatBuffer toBuffer() {
        int numFloats = 3 * set.size();
        FloatBuffer buffer = BufferUtils.createFloatBuffer(numFloats);
        for (Vector3f tempVector : set) {
            buffer.put(tempVector.x);
            buffer.put(tempVector.y);
            buffer.put(tempVector.z);
        }
        buffer.flip();

        return buffer;
    }
Access the buffer containing all the Vector3f values in this set. No
further add() is allowed.

@return a new buffer, flipped
jme3-jbullet/src/main/java/com/jme3/bullet/animation/VectorSet.java