Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.mesh.getModelMeshes

C๐Ÿท๏ธ Mesh

Part of StarfallEx namespace

๐Ÿ”— External
mesh.getModelMeshes(model, lod, bodygroupMask)
View on GitHub|lua/starfall/libs_sh/mesh.lua:963
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Returns a table of visual meshes of given model or nil if the model is invalid

Parameters

NameTypeDescription
modelstringThe full path to a model to get the visual meshes of.
lod?numberThe lod of the model to use. Default 0.
bodygroupMask?numberThe bodygroupMask of the model to use. Default 0.

Returns

TypeDescription
tableA table of tables with the following format: string material - The material of the specific mesh table triangles - A table of MeshVertex structures ready to be fed into IMesh:BuildFromTriangles table verticies - A table of MeshVertex structures representing all the vertexes of the mesh. This table is used internally to generate the "triangles" table. Each MeshVertex structure returned also has an extra table of tables field called "weights" with the following data: number boneID - The bone this vertex is attached to number weight - How "strong" this vertex is attached to the bone. A vertex can be attached to multiple bones at once.
tableA table of tables with bone id keys with the following format: number parent - The parent bone id Matrix matrix - pretransformed bone matrix

Examples

No examples available.

Used In

No usages found in the codebase.