The UtilFunctions class is a collection of miscellanous useful lua functions.
tries out if the given file exists. This is not very clean since it only trys to open and close the file and if it doesn't throw an error it is assumed that the file exists.
Creates a geom trimeshdata from the given model. Optionally transforms vertices.
tableBase : {data = dgeomtrimeshdata, aabox = {min{x,y,z},max{x,y,z}, center = {x,y,z}}
tableHit : {table similar to base, but for every "hitmesh" = meshes that contain "hitzone" in the material name
tableRaw : { inds = indices{}, verts = vertices{}, tris = tridata{{mesh=meshid,orig=original index}...} }, table with all indices/vertices and a table with the tridata for every face in the model
retrieves the filename of a luafunction, if possible. The level is the functioncallerstack and should be >=1 returns filename and level of the found path.
for key,value in UtilFunctions.pairsByKeys({cde=1, abc=2}) do print(key,value) end
abc 2 cde 3
Sets the position of the small Luxinia Logo at one of the four corners (whatever you like more). Topright = 1, rightbottom = 2, bottomleft = 3, topleft = 4.