public static Vector3f parseVector3(Attributes attribs) throws SAXException {
        float x = parseFloat(attribs.getValue("x"));
        float y = parseFloat(attribs.getValue("y"));
        float z = parseFloat(attribs.getValue("z"));
        return new Vector3f(x,y,z);
    }
Parses an integer from a string, if the string is null returns
def.

@param i The string to parse
@param def The default value if the string is null
@return the parsed value or def
@throws SAXException in case of a syntax error
jme3-core/src/main/java/com/jme3/util/xml/SAXUtil.java