Model

class Model(raw: ERROR CLASS: Symbol not found for CValue<ERROR CLASS: Symbol not found for raylib.internal.Model>)

Represents a raylib model.

Constructors

Link copied to clipboard
constructor(raw: ERROR CLASS: Symbol not found for CValue<ERROR CLASS: Symbol not found for raylib.internal.Model>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The bounding box of the model.

Link copied to clipboard

Whether the model is valid.

Link copied to clipboard

The number of materials in the model.

Link copied to clipboard

The materials in the model.

Link copied to clipboard

The number of meshes in the model.

Link copied to clipboard

The meshes in the model.

Link copied to clipboard
val parts: List<ERROR CLASS: Symbol not found for Pair<raylib/Mesh, raylib/Material>>

The list of meshes and their associated materials.

Link copied to clipboard

The model transformation matrix.

Functions

Link copied to clipboard
fun addMaterial(material: Material)

Adds a material to the model.

Link copied to clipboard
fun addPart(mesh: Mesh, material: Material)

Adds a mesh and its associated material to the model.

Link copied to clipboard
fun removeMaterial(index: Int)

Removes the material at the specified index.

Link copied to clipboard
fun removePart(index: Int)

Removes a mesh and its associated material from the model at the specified index.

Link copied to clipboard
fun setMaterial(index: Int, material: Material)

Sets the material at the specified index.

Link copied to clipboard
fun setMeshMaterial(meshId: Int, materialId: Int)
fun setMeshMaterial(meshId: Int, material: Material)
fun setMeshMaterial(mesh: Mesh, material: Material)

Sets the material for a specific mesh in the model.

Link copied to clipboard
fun setPart(index: Int, mesh: Mesh, material: Material)

Sets the mesh and its associated material at the specified index.