Part of StarfallEx namespace
๐ External
mesh.getModelMeshes(model, lod, bodygroupMask)๐ 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
| Name | Type | Description |
|---|---|---|
model | string | The full path to a model to get the visual meshes of. |
lod? | number | The lod of the model to use. Default 0. |
bodygroupMask? | number | The bodygroupMask of the model to use. Default 0. |
Returns
| Type | Description |
|---|---|
table | A 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. |
table | A 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.